public interface AppendableColumn<DATA_TYPE>
| Modifier and Type | Method and Description |
|---|---|
void |
add(DATA_TYPE value)
Append a DATA_TYPE to this column.
|
void |
add(DATA_TYPE[] values,
int startIndex,
int length)
Add DATA_TYPE values from an array.
|
void |
addBoolean(Boolean value)
Append a Boolean to this column.
|
void |
addBooleans(Boolean[] values,
int startIndex,
int length)
Add Boolean values from an array.
|
void |
addByte(byte value)
Append a byte to this column.
|
void |
addBytes(byte[] values,
int startIndex,
int length)
Add byte values from an array.
|
void |
addBytes(ByteBuffer buffer)
Add byte values from a ByteBuffer, starting at buffer.position() and continuing to buffer.limit().
|
void |
addChar(char value)
Append a char to this column.
|
void |
addChars(char[] values,
int startIndex,
int length)
Add char values from an array.
|
void |
addDouble(double value)
Append a double to this column.
|
void |
addDoubles(double[] values,
int startIndex,
int length)
Add double values from an array.
|
void |
addFloat(float value)
Append a float to this column.
|
void |
addFloats(float[] values,
int startIndex,
int length)
Add float values from an array.
|
default void |
addFromArray(Object array,
int startIndex,
int length)
Add values from an array of the "correct" type.
|
default void |
addFromBoxedValue(DATA_TYPE value)
Add a value, with type-specific unboxing and null-conversion for primitive wrapper classes.
|
default void |
addFromBoxedValue(DATA_TYPE value,
long count)
Add a value multiple times, with type-specific unboxing and null-conversion for primitive wrapper classes.
|
default void |
addFromColumnSource(ColumnSource<DATA_TYPE> source,
Index index)
Add values described by an Index from a ColumnSource.
|
default void |
addFromColumnSource(ColumnSource<DATA_TYPE> source,
long sourceKey)
Add a value described by its key from a ColumnSource.
|
default void |
addFromColumnSource(ColumnSource<DATA_TYPE> source,
long[] sourceKeys)
Add values described by an array of their keys from a ColumnSource.
|
default void |
addFromColumnSource(ColumnSource<DATA_TYPE> source,
PrimitiveIterator.OfLong keyIterator)
Add values supplied by an iterator from a ColumnSource.
|
default void |
addFromDataColumn(DataColumn<DATA_TYPE> source,
int sourcePosition)
Add a value described by its position from a DataColumn.
|
void |
addInt(int value)
Append a int to this column.
|
void |
addInts(int[] values,
int startIndex,
int length)
Add int values from an array.
|
void |
addLong(long value)
Append a long to this column.
|
void |
addLongs(long[] values,
int startIndex,
int length)
Add long values from an array.
|
void |
addShort(short value)
Append a short to this column.
|
void |
addShorts(short[] values,
int startIndex,
int length)
Add short values from an array.
|
void |
close()
Persist all added data and release any system resources consumed by this column.
|
void |
force()
Persist all added data.
|
default AppendableColumnAddHelper<DATA_TYPE> |
getAddHelper()
Get a type-appropriate helper instance for complex append operations.
|
String |
getName()
The name of this column in the enclosing table.
|
Class<DATA_TYPE> |
getType() |
String getName()
default AppendableColumnAddHelper<DATA_TYPE> getAddHelper()
void force()
void close()
void addBoolean(Boolean value)
value - The value to appendvoid addByte(byte value)
value - The value to appendvoid addChar(char value)
value - The value to appendvoid addDouble(double value)
value - The value to appendvoid addFloat(float value)
value - The value to appendvoid addInt(int value)
value - The value to appendvoid addLong(long value)
value - The value to appendvoid addShort(short value)
value - The value to appendvoid add(DATA_TYPE value)
value - The value to appendvoid addBooleans(@NotNull
Boolean[] values,
int startIndex,
int length)
values - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to addvoid addBytes(@NotNull
byte[] values,
int startIndex,
int length)
values - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to addvoid addBytes(@NotNull
ByteBuffer buffer)
buffer - The buffervoid addChars(@NotNull
char[] values,
int startIndex,
int length)
values - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to addvoid addDoubles(@NotNull
double[] values,
int startIndex,
int length)
values - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to addvoid addFloats(@NotNull
float[] values,
int startIndex,
int length)
values - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to addvoid addInts(@NotNull
int[] values,
int startIndex,
int length)
values - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to addvoid addLongs(@NotNull
long[] values,
int startIndex,
int length)
values - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to addvoid addShorts(@NotNull
short[] values,
int startIndex,
int length)
values - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to addvoid add(@NotNull
DATA_TYPE[] values,
int startIndex,
int length)
values - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to adddefault void addFromDataColumn(@NotNull
DataColumn<DATA_TYPE> source,
int sourcePosition)
source - The source DataColumnsourcePosition - The position within source that contains the value to be addeddefault void addFromColumnSource(@NotNull
ColumnSource<DATA_TYPE> source,
long sourceKey)
source - The source ColumnSourcesourceKey - The key within source that contains the value to be addeddefault void addFromColumnSource(@NotNull
ColumnSource<DATA_TYPE> source,
@NotNull
long[] sourceKeys)
source - The source ColumnSourcesourceKeys - The keys within source that contain the values to be addeddefault void addFromColumnSource(@NotNull
ColumnSource<DATA_TYPE> source,
@NotNull
Index index)
source - The source ColumnSourceindex - An index whose keys within source contain the values to be addeddefault void addFromColumnSource(@NotNull
ColumnSource<DATA_TYPE> source,
@NotNull
PrimitiveIterator.OfLong keyIterator)
source - The source ColumnSourcekeyIterator - An iterator of keys within source that contain the values to be addeddefault void addFromBoxedValue(DATA_TYPE value)
value - The value to adddefault void addFromBoxedValue(DATA_TYPE value, long count)
value - The value to addcount - The number of times to add the valuedefault void addFromArray(@NotNull
Object array,
int startIndex,
int length)
array - The array of valuesstartIndex - The index of the first value to addlength - The total number of values to add