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 Classes Modifier and Type Class Description static classAbstractSerializablePairLongObjectBufferStore.TransferredBuffercontains serialized data that is compressed and delta-encoded (Long) It's ready to be transferred to aWritableByteChannel
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractSerializablePairLongObjectColumnHeader<T>createColumnHeader()abstract AbstractSerializablePairLongObjectDeltaEncodedStagedSerde<T>createDeltaEncodedSerde(AbstractSerializablePairLongObjectColumnHeader<T> columnHeader)IOIterator<T>iterator()voidstore(T pairLongObject)AbstractSerializablePairLongObjectBufferStore.TransferredBuffertransferToRowWriter(ByteBufferProvider byteBufferProvider, SegmentWriteOutMedium segmentWriteOutMedium)each call transfers the temporary buffer into an encoded, block-compessed buffer of the segment.
-
-
-
Method Detail
-
store
public void store(@Nullable T pairLongObject) throws IOException
- 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
@Nonnull public abstract AbstractSerializablePairLongObjectColumnHeader<T> createColumnHeader()
-
createDeltaEncodedSerde
public abstract AbstractSerializablePairLongObjectDeltaEncodedStagedSerde<T> createDeltaEncodedSerde(AbstractSerializablePairLongObjectColumnHeader<T> columnHeader)
-
iterator
public IOIterator<T> iterator() throws IOException
- Throws:
IOException
-
-