/** * Adds a new empty record of the specified type * * @param recordType the vector type * @return this modified */ default Builder addRecord(VectorType recordType) { return addRecord(recordType.newBuilder()); }
/** * Adds a new vector builder as an additional column using {@link * org.briljantframework.data.vector.VectorType#newBuilder()} * * @param columnType the type * @return receiver modified */ default Builder add(VectorType columnType) { return add(columnType.newBuilder()); }
/** * Set the record at the specified position to an empty vector of the specified type * * @param key the record key * @param recordType the vector type * @return this modified */ default Builder setRecord(Object key, VectorType recordType) { return setRecord(key, recordType.newBuilder()); }
/** * Set the column at the specified index to a new empty vector builder of the specified type. * * @param key the column index * @param columnType the type of vector * @return this modified */ default Builder set(Object key, VectorType columnType) { return set(key, columnType.newBuilder()); }