use of org.apache.druid.segment.data.VSizeColumnarIntsSerializer in project druid by druid-io.
the class DictionaryEncodedColumnMerger method setupEncodedValueWriter.
protected void setupEncodedValueWriter() throws IOException {
final CompressionStrategy compressionStrategy = indexSpec.getDimensionCompression();
String filenameBase = StringUtils.format("%s.forward_dim", dimensionName);
if (capabilities.hasMultipleValues().isTrue()) {
if (compressionStrategy != CompressionStrategy.UNCOMPRESSED) {
encodedValueSerializer = V3CompressedVSizeColumnarMultiIntsSerializer.create(dimensionName, segmentWriteOutMedium, filenameBase, cardinality, compressionStrategy);
} else {
encodedValueSerializer = new VSizeColumnarMultiIntsSerializer(dimensionName, segmentWriteOutMedium, cardinality);
}
} else {
if (compressionStrategy != CompressionStrategy.UNCOMPRESSED) {
encodedValueSerializer = CompressedVSizeColumnarIntsSerializer.create(dimensionName, segmentWriteOutMedium, filenameBase, cardinality, compressionStrategy);
} else {
encodedValueSerializer = new VSizeColumnarIntsSerializer(segmentWriteOutMedium, cardinality);
}
}
encodedValueSerializer.open();
}
Aggregations