Class StreamAppendableColumn<DATA_TYPE>
java.lang.Object
com.illumon.iris.db.tables.appendable.BaseAppendableColumn<DATA_TYPE>
com.illumon.iris.db.tables.appendable.stream.StreamAppendableColumn<DATA_TYPE>
- All Implemented Interfaces:
AppendableColumn<DATA_TYPE>
- Direct Known Subclasses:
BlobStreamAppendableColumn,DateTimeStreamAppendableColumn
AppendableColumn for streaming output to a CurrentByteBufferSink.
-
Field Summary
Fields inherited from class com.illumon.iris.db.tables.appendable.BaseAppendableColumn
name, typeFields inherited from interface com.illumon.iris.db.tables.appendable.AppendableColumn
DEFAULT_CHUNK_CAPACITY -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddByte(byte value) Append a byte to this column.final voidaddByte(byte value, long count) Append a byte to this columncounttimes.final voidaddBytes(byte[] values, int startIndex, int length) Add byte values from an array.final voidaddBytes(ByteBuffer buffer) Add byte values from a ByteBuffer, starting at buffer.position() and continuing to buffer.limit().final voidaddChar(char value) Append a char to this column.final voidaddChar(char value, long count) Append a char to this columncounttimes.final voidaddChars(char[] values, int startIndex, int length) Add char values from an array.final voidaddDouble(double value) Append a double to this column.final voidaddDouble(double value, long count) Append a double to this columncounttimes.final voidaddDoubles(double[] values, int startIndex, int length) Add double values from an array.final voidaddFloat(float value) Append a float to this column.final voidaddFloat(float value, long count) Append a float to this columncounttimes.final voidaddFloats(float[] values, int startIndex, int length) Add float values from an array.final voidaddFromBooleanChunk(ObjectChunk<Boolean, ? extends Attributes.Values> source) Add all values fromsourcein the range[0, source.size()).final voidaddFromByteChunk(ByteChunk<? extends Attributes.Values> source) Add all values fromsourcein the range[0, source.size()).final voidaddFromCharChunk(CharChunk<? extends Attributes.Values> source) Add all values fromsourcein the range[0, source.size()).final voidaddFromDoubleChunk(DoubleChunk<? extends Attributes.Values> source) Add all values fromsourcein the range[0, source.size()).final voidaddFromFloatChunk(FloatChunk<? extends Attributes.Values> source) Add all values fromsourcein the range[0, source.size()).final voidaddFromIntChunk(IntChunk<? extends Attributes.Values> source) Add all values fromsourcein the range[0, source.size()).final voidaddFromLongChunk(LongChunk<? extends Attributes.Values> source) Add all values fromsourcein the range[0, source.size()).final voidaddFromObjectChunk(ObjectChunk<DATA_TYPE, ? extends Attributes.Values> source) Add all values fromsourcein the range[0, source.size()).final voidaddFromShortChunk(ShortChunk<? extends Attributes.Values> source) Add all values fromsourcein the range[0, source.size()).final voidaddInt(int value) Append a int to this column.final voidaddInt(int value, long count) Append a int to this columncounttimes.final voidaddInts(int[] values, int startIndex, int length) Add int values from an array.final voidaddLong(long value) Append a long to this column.final voidaddLong(long value, long count) Append a long to this columncounttimes.final voidaddLongs(long[] values, int startIndex, int length) Add long values from an array.final voidaddShort(short value) Append a short to this column.final voidaddShort(short value, long count) Append a short to this columncounttimes.final voidaddShorts(short[] values, int startIndex, int length) Add short values from an array.final voidclose()Persist all added data and release any system resources consumed by this column.final voidforce()Persist all added data.Methods inherited from class com.illumon.iris.db.tables.appendable.BaseAppendableColumn
add, add, add, addBoolean, addBoolean, addBooleans, checkArrayAddBounds, encodeExternalizable, encodeSerializable, getAddHelper, getName, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.tables.appendable.AppendableColumn
addFromArray, addFromBoxedValue, addFromBoxedValue, addFromChunk, addFromChunkSource, addFromChunkSource, addFromChunkSource, addFromColumnSource, addFromColumnSource, addFromColumnSource, addFromColumnSource, addFromDataColumn
-
Method Details
-
force
public final void force()Description copied from interface:AppendableColumnPersist all added data. -
close
public final void close()Description copied from interface:AppendableColumnPersist all added data and release any system resources consumed by this column. -
addByte
public final void addByte(byte value) Description copied from interface:AppendableColumnAppend a byte to this column.- Parameters:
value- The value to append
-
addChar
public final void addChar(char value) Description copied from interface:AppendableColumnAppend a char to this column.- Parameters:
value- The value to append
-
addDouble
public final void addDouble(double value) Description copied from interface:AppendableColumnAppend a double to this column.- Parameters:
value- The value to append
-
addFloat
public final void addFloat(float value) Description copied from interface:AppendableColumnAppend a float to this column.- Parameters:
value- The value to append
-
addInt
public final void addInt(int value) Description copied from interface:AppendableColumnAppend a int to this column.- Parameters:
value- The value to append
-
addLong
public final void addLong(long value) Description copied from interface:AppendableColumnAppend a long to this column.- Parameters:
value- The value to append
-
addShort
public final void addShort(short value) Description copied from interface:AppendableColumnAppend a short to this column.- Parameters:
value- The value to append
-
addByte
public final void addByte(byte value, long count) Description copied from interface:AppendableColumnAppend a byte to this columncounttimes.- Parameters:
value- The value to appendcount- The number of times to append the value
-
addChar
public final void addChar(char value, long count) Description copied from interface:AppendableColumnAppend a char to this columncounttimes.- Parameters:
value- The value to appendcount- The number of times to append the value
-
addDouble
public final void addDouble(double value, long count) Description copied from interface:AppendableColumnAppend a double to this columncounttimes.- Parameters:
value- The value to appendcount- The number of times to append the value
-
addFloat
public final void addFloat(float value, long count) Description copied from interface:AppendableColumnAppend a float to this columncounttimes.- Parameters:
value- The value to appendcount- The number of times to append the value
-
addInt
public final void addInt(int value, long count) Description copied from interface:AppendableColumnAppend a int to this columncounttimes.- Parameters:
value- The value to appendcount- The number of times to append the value
-
addLong
public final void addLong(long value, long count) Description copied from interface:AppendableColumnAppend a long to this columncounttimes.- Parameters:
value- The value to appendcount- The number of times to append the value
-
addShort
public final void addShort(short value, long count) Description copied from interface:AppendableColumnAppend a short to this columncounttimes.- Parameters:
value- The value to appendcount- The number of times to append the value
-
addBytes
public final void addBytes(@NotNull byte[] values, int startIndex, int length) Description copied from interface:AppendableColumnAdd byte values from an array.- Parameters:
values- The array of valuesstartIndex- The index of the first value to addlength- The total number of values to add
-
addBytes
Description copied from interface:AppendableColumnAdd byte values from a ByteBuffer, starting at buffer.position() and continuing to buffer.limit().- Parameters:
buffer- The buffer
-
addChars
public final void addChars(@NotNull char[] values, int startIndex, int length) Description copied from interface:AppendableColumnAdd char values from an array.- Parameters:
values- The array of valuesstartIndex- The index of the first value to addlength- The total number of values to add
-
addDoubles
public final void addDoubles(@NotNull double[] values, int startIndex, int length) Description copied from interface:AppendableColumnAdd double values from an array.- Parameters:
values- The array of valuesstartIndex- The index of the first value to addlength- The total number of values to add
-
addFloats
public final void addFloats(@NotNull float[] values, int startIndex, int length) Description copied from interface:AppendableColumnAdd float values from an array.- Parameters:
values- The array of valuesstartIndex- The index of the first value to addlength- The total number of values to add
-
addInts
public final void addInts(@NotNull int[] values, int startIndex, int length) Description copied from interface:AppendableColumnAdd int values from an array.- Parameters:
values- The array of valuesstartIndex- The index of the first value to addlength- The total number of values to add
-
addLongs
public final void addLongs(@NotNull long[] values, int startIndex, int length) Description copied from interface:AppendableColumnAdd long values from an array.- Parameters:
values- The array of valuesstartIndex- The index of the first value to addlength- The total number of values to add
-
addShorts
public final void addShorts(@NotNull short[] values, int startIndex, int length) Description copied from interface:AppendableColumnAdd short values from an array.- Parameters:
values- The array of valuesstartIndex- The index of the first value to addlength- The total number of values to add
-
addFromBooleanChunk
public final void addFromBooleanChunk(@NotNull ObjectChunk<Boolean, ? extends Attributes.Values> source) Description copied from interface:AppendableColumnAdd all values fromsourcein the range[0, source.size()).- Parameters:
source- The sourceObjectChunk
-
addFromByteChunk
Description copied from interface:AppendableColumnAdd all values fromsourcein the range[0, source.size()).- Parameters:
source- The sourceByteChunk
-
addFromCharChunk
Description copied from interface:AppendableColumnAdd all values fromsourcein the range[0, source.size()).- Parameters:
source- The sourceCharChunk
-
addFromDoubleChunk
Description copied from interface:AppendableColumnAdd all values fromsourcein the range[0, source.size()).- Parameters:
source- The sourceDoubleChunk
-
addFromFloatChunk
Description copied from interface:AppendableColumnAdd all values fromsourcein the range[0, source.size()).- Parameters:
source- The sourceFloatChunk
-
addFromIntChunk
Description copied from interface:AppendableColumnAdd all values fromsourcein the range[0, source.size()).- Parameters:
source- The sourceIntChunk
-
addFromLongChunk
Description copied from interface:AppendableColumnAdd all values fromsourcein the range[0, source.size()).- Parameters:
source- The sourceLongChunk
-
addFromShortChunk
Description copied from interface:AppendableColumnAdd all values fromsourcein the range[0, source.size()).- Parameters:
source- The sourceShortChunk
-
addFromObjectChunk
public final void addFromObjectChunk(@NotNull ObjectChunk<DATA_TYPE, ? extends Attributes.Values> source) Description copied from interface:AppendableColumnAdd all values fromsourcein the range[0, source.size()).- Parameters:
source- The sourceObjectChunk
-