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 specifieddestination
beginning at 0.LongChunkAppender(WritableLongChunk<? extends Attributes.Any> destination, int offset)
Construct a LongChunkAppender to append to the specifieddestination
beginning atoffset
. -
Method Summary
Modifier and Type Method Description void
accept(long value)
-
Constructor Details
-
LongChunkAppender
public LongChunkAppender(@NotNull WritableLongChunk<? extends Attributes.Any> destination, int offset)Construct a LongChunkAppender to append to the specifieddestination
beginning atoffset
.- Parameters:
destination
- The destinationWritableLongChunk
offset
- The initial position to append to
-
LongChunkAppender
Construct a LongChunkAppender for the specifieddestination
beginning at 0.- Parameters:
destination
- The destinationWritableLongChunk
-
-
Method Details
-
accept
public final void accept(long value)- Specified by:
accept
in interfaceLongConsumer
-