Package org.apache.druid.segment.serde
Class ColumnSerializerUtils
java.lang.Object
org.apache.druid.segment.serde.ColumnSerializerUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final com.fasterxml.jackson.databind.ObjectMapperstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetInternalFileName(String fileNameBase, String field) static SmooshedFileMappermapSerializer(File smooshFile, Serializer writer, String name) Writes aSerializerto a 'smoosh file' which contains the contents of this single serializer, with the serializer writing to an internal file specified by the name argument, returning aSmooshedFileMapperstatic ByteBufferstringToUtf8InVSizeByteBuffer(String stringVal) Convert a String to a ByteBuffer with a variable size length prepended to it.static voidwriteInternal(FileSmoosher smoosher, Serializer serializer, String columnName, String fileName)
-
Field Details
-
STRING_DICTIONARY_FILE_NAME
- See Also:
-
LONG_DICTIONARY_FILE_NAME
- See Also:
-
DOUBLE_DICTIONARY_FILE_NAME
- See Also:
-
ARRAY_DICTIONARY_FILE_NAME
- See Also:
-
ARRAY_ELEMENT_DICTIONARY_FILE_NAME
- See Also:
-
ENCODED_VALUE_COLUMN_FILE_NAME
- See Also:
-
LONG_VALUE_COLUMN_FILE_NAME
- See Also:
-
DOUBLE_VALUE_COLUMN_FILE_NAME
- See Also:
-
BITMAP_INDEX_FILE_NAME
- See Also:
-
ARRAY_ELEMENT_BITMAP_INDEX_FILE_NAME
- See Also:
-
NULL_BITMAP_FILE_NAME
- See Also:
-
SMILE_MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper SMILE_MAPPER
-
-
Constructor Details
-
ColumnSerializerUtils
public ColumnSerializerUtils()
-
-
Method Details
-
writeInternal
public static void writeInternal(FileSmoosher smoosher, Serializer serializer, String columnName, String fileName) throws IOException - Throws:
IOException
-
getInternalFileName
-
stringToUtf8InVSizeByteBuffer
Convert a String to a ByteBuffer with a variable size length prepended to it.- Parameters:
stringVal- the value to store in the ByteBuffer- Returns:
- ByteBuffer with the string converted to utf8 bytes and stored with a variable size length int prepended
-
mapSerializer
Writes aSerializerto a 'smoosh file' which contains the contents of this single serializer, with the serializer writing to an internal file specified by the name argument, returning aSmooshedFileMapper
-