Class SerializablePairLongStringComplexMetricSerde

java.lang.Object
org.apache.druid.segment.serde.ComplexMetricSerde
org.apache.druid.query.aggregation.SerializablePairLongStringComplexMetricSerde

public class SerializablePairLongStringComplexMetricSerde extends ComplexMetricSerde
The SerializablePairLongStringSerde serializes a Long-String pair (SerializablePairLongString). The serialization structure is: Long:Integer:String The Long is delta-encoded for the column in order to potentially reduce the size to an integer so it may be stored as: Integer:Integer:String

Future work: dictionary encoding of the String may be performed

The class is used on first/last String aggregators to store the time and the first/last string. [Integer|Long]:Integer:String -> delta:StringSize:StringData --(delta decoded)--> TimeStamp:StringSize:StringData (see )