Class LongChunkAppender
java.lang.Object
com.illumon.iris.db.v2.sources.chunk.util.LongChunkAppender
- All Implemented Interfaces:
LongConsumer
LongConsumer that appends successive longs to a WritableLongChunk without mutating the destination's
size.-
Constructor Summary
ConstructorsConstructorDescriptionLongChunkAppender(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.LongConsumer
andThen
-
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
-