Class SerializablePairLongStringBufferStore
- java.lang.Object
-
- org.apache.druid.query.aggregation.SerializablePairLongStringBufferStore
-
public class SerializablePairLongStringBufferStore extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSerializablePairLongStringBufferStore.TransferredBuffercontains serialized data that is compressed and delta-encoded (Long) It's ready to be transferred to aWritableByteChannel
-
Constructor Summary
Constructors Constructor Description SerializablePairLongStringBufferStore(SerializedStorage<SerializablePairLongString> serializedStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializablePairLongStringColumnHeadercreateColumnHeader()IOIterator<SerializablePairLongString>iterator()voidstore(SerializablePairLongString pairLongString)SerializablePairLongStringBufferStore.TransferredBuffertransferToRowWriter(ByteBufferProvider byteBufferProvider, SegmentWriteOutMedium segmentWriteOutMedium)each call transfers the temporary buffer into an encoded, block-compessed buffer of the segment.
-
-
-
Constructor Detail
-
SerializablePairLongStringBufferStore
public SerializablePairLongStringBufferStore(SerializedStorage<SerializablePairLongString> serializedStorage)
-
-
Method Detail
-
store
public void store(@Nullable SerializablePairLongString pairLongString) throws IOException
- Throws:
IOException
-
transferToRowWriter
public SerializablePairLongStringBufferStore.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 SerializablePairLongStringColumnHeader createColumnHeader()
-
iterator
public IOIterator<SerializablePairLongString> iterator() throws IOException
- Throws:
IOException
-
-