Class AbstractSerializablePairLongObjectBufferStore<T extends SerializablePair<Long,?>>
java.lang.Object
org.apache.druid.query.aggregation.AbstractSerializablePairLongObjectBufferStore<T>
- Direct Known Subclasses:
SerializablePairLongDoubleBufferStore,SerializablePairLongFloatBufferStore,SerializablePairLongLongBufferStore,SerializablePairLongStringBufferStore
public abstract class AbstractSerializablePairLongObjectBufferStore<T extends SerializablePair<Long,?>>
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classcontains serialized data that is compressed and delta-encoded (Long) It's ready to be transferred to aWritableByteChannel -
Method Summary
Modifier and TypeMethodDescriptioniterator()voidtransferToRowWriter(ByteBufferProvider byteBufferProvider, SegmentWriteOutMedium segmentWriteOutMedium) each call transfers the temporary buffer into an encoded, block-compessed buffer of the segment.
-
Method Details
-
store
- Throws:
IOException
-
transferToRowWriter
public AbstractSerializablePairLongObjectBufferStore.TransferredBuffer transferToRowWriter(ByteBufferProvider byteBufferProvider, SegmentWriteOutMedium segmentWriteOutMedium) throws IOException each call transfers the temporary buffer into an encoded, block-compessed buffer of the segment. It is ready to be transferred to aWritableByteChannel- Parameters:
byteBufferProvider- - provides a ByteBuffer used for block compressed encodingsegmentWriteOutMedium- - used to create temporary storage- Returns:
- encoded buffer ready to be stored
- Throws:
IOException
-
createColumnHeader
-
createDeltaEncodedSerde
public abstract AbstractSerializablePairLongObjectDeltaEncodedStagedSerde<T> createDeltaEncodedSerde(AbstractSerializablePairLongObjectColumnHeader<T> columnHeader) -
iterator
- Throws:
IOException
-