Class LongChunkAppender
java.lang.Object
com.illumon.iris.db.v2.sources.chunk.util.LongChunkAppender
- All Implemented Interfaces:
LongConsumer
public final class LongChunkAppender extends Object implements LongConsumer
LongConsumer that appends successive longs to a WritableLongChunk without mutating the destination's
size.-
Constructor Summary
Constructors Constructor Description LongChunkAppender(WritableLongChunk<? extends Attributes.Any> destination)Construct a LongChunkAppender for the specifieddestinationbeginning at 0.LongChunkAppender(WritableLongChunk<? extends Attributes.Any> destination, int offset)Construct a LongChunkAppender to append to the specifieddestinationbeginning atoffset. -
Method Summary
Modifier and Type Method Description voidaccept(long value)
-
Constructor Details
-
LongChunkAppender
public LongChunkAppender(@NotNull WritableLongChunk<? extends Attributes.Any> destination, int offset)Construct a LongChunkAppender to append to the specifieddestinationbeginning atoffset.- Parameters:
destination- The destinationWritableLongChunkoffset- The initial position to append to
-
LongChunkAppender
Construct a LongChunkAppender for the specifieddestinationbeginning at 0.- Parameters:
destination- The destinationWritableLongChunk
-
-
Method Details
-
accept
public final void accept(long value)- Specified by:
acceptin interfaceLongConsumer
-