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
public class StreamAppendableColumn<DATA_TYPE> extends BaseAppendableColumn<DATA_TYPE>
AppendableColumn for streaming output to a CurrentByteBufferSink.
-
Field Summary
Fields inherited from interface com.illumon.iris.db.tables.appendable.AppendableColumn
DEFAULT_CHUNK_CAPACITY -
Method Summary
Modifier and Type Method Description voidaddByte(byte value)Append a byte to this column.voidaddByte(byte value, long count)Append a byte to this columncounttimes.voidaddBytes(byte[] values, int startIndex, int length)Add byte values from an array.voidaddBytes(ByteBuffer buffer)Add byte values from a ByteBuffer, starting at buffer.position() and continuing to buffer.limit().voidaddChar(char value)Append a char to this column.voidaddChar(char value, long count)Append a char to this columncounttimes.voidaddChars(char[] values, int startIndex, int length)Add char values from an array.voidaddDouble(double value)Append a double to this column.voidaddDouble(double value, long count)Append a double to this columncounttimes.voidaddDoubles(double[] values, int startIndex, int length)Add double values from an array.voidaddFloat(float value)Append a float to this column.voidaddFloat(float value, long count)Append a float to this columncounttimes.voidaddFloats(float[] values, int startIndex, int length)Add float values from an array.voidaddFromBooleanChunk(ObjectChunk<Boolean,? extends Attributes.Values> source)Add all values fromsourcein the range[0, source.size()).voidaddFromByteChunk(ByteChunk<? extends Attributes.Values> source)Add all values fromsourcein the range[0, source.size()).voidaddFromCharChunk(CharChunk<? extends Attributes.Values> source)Add all values fromsourcein the range[0, source.size()).voidaddFromDoubleChunk(DoubleChunk<? extends Attributes.Values> source)Add all values fromsourcein the range[0, source.size()).voidaddFromFloatChunk(FloatChunk<? extends Attributes.Values> source)Add all values fromsourcein the range[0, source.size()).voidaddFromIntChunk(IntChunk<? extends Attributes.Values> source)Add all values fromsourcein the range[0, source.size()).voidaddFromLongChunk(LongChunk<? extends Attributes.Values> source)Add all values fromsourcein the range[0, source.size()).voidaddFromObjectChunk(ObjectChunk<DATA_TYPE,? extends Attributes.Values> source)Add all values fromsourcein the range[0, source.size()).voidaddFromShortChunk(ShortChunk<? extends Attributes.Values> source)Add all values fromsourcein the range[0, source.size()).voidaddInt(int value)Append a int to this column.voidaddInt(int value, long count)Append a int to this columncounttimes.voidaddInts(int[] values, int startIndex, int length)Add int values from an array.voidaddLong(long value)Append a long to this column.voidaddLong(long value, long count)Append a long to this columncounttimes.voidaddLongs(long[] values, int startIndex, int length)Add long values from an array.voidaddShort(short value)Append a short to this column.voidaddShort(short value, long count)Append a short to this columncounttimes.voidaddShorts(short[] values, int startIndex, int length)Add short values from an array.voidclose()Persist all added data and release any system resources consumed by this column.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
-