public abstract class BaseAppendableColumn<TYPE> extends Object implements AppendableColumn<TYPE>
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected Class<TYPE> |
type |
Constructor and Description |
---|
BaseAppendableColumn(String name,
Class<TYPE> type) |
Modifier and Type | Method and Description |
---|---|
void |
add(TYPE value)
Append a DATA_TYPE to this column.
|
void |
add(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.
|
protected static void |
checkArrayAddBounds(int arrayLength,
int startIndex,
int length) |
protected static long |
encodeDateTime(DBDateTime value) |
protected static <VALUE_TYPE extends Externalizable> |
encodeExternalizable(VALUE_TYPE value) |
protected static <VALUE_TYPE> |
encodeSerializable(VALUE_TYPE value)
Encode a value of a (assumed to be) serializable type.
|
AppendableColumnAddHelper<TYPE> |
getAddHelper()
Get a type-appropriate helper instance for complex append operations.
|
String |
getName()
The name of this column in the enclosing table.
|
Class<TYPE> |
getType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addByte, addBytes, addBytes, addChar, addChars, addDouble, addDoubles, addFloat, addFloats, addFromArray, addFromBoxedValue, addFromBoxedValue, addFromColumnSource, addFromColumnSource, addFromColumnSource, addFromColumnSource, addFromDataColumn, addInt, addInts, addLong, addLongs, addShort, addShorts, close, force
protected static void checkArrayAddBounds(int arrayLength, int startIndex, int length)
protected static long encodeDateTime(@Nullable DBDateTime value)
protected static <VALUE_TYPE> byte[] encodeSerializable(@NotNull VALUE_TYPE value)
value
- The value to encodeprotected static <VALUE_TYPE extends Externalizable> byte[] encodeExternalizable(@NotNull VALUE_TYPE value)
public String getName()
AppendableColumn
getName
in interface AppendableColumn<TYPE>
public Class<TYPE> getType()
getType
in interface AppendableColumn<TYPE>
public AppendableColumnAddHelper<TYPE> getAddHelper()
AppendableColumn
getAddHelper
in interface AppendableColumn<TYPE>
public void addBoolean(Boolean value)
AppendableColumn
addBoolean
in interface AppendableColumn<TYPE>
value
- The value to appendpublic void addBooleans(@NotNull Boolean[] values, int startIndex, int length)
AppendableColumn
addBooleans
in interface AppendableColumn<TYPE>
values
- The array of valuesstartIndex
- The index of the first value to addlength
- The total number of values to addpublic void add(TYPE value)
AppendableColumn
add
in interface AppendableColumn<TYPE>
value
- The value to appendpublic void add(@NotNull TYPE[] values, int startIndex, int length)
AppendableColumn
add
in interface AppendableColumn<TYPE>
values
- The array of valuesstartIndex
- The index of the first value to addlength
- The total number of values to add