Class ColumnSerializerUtils

java.lang.Object
org.apache.druid.segment.serde.ColumnSerializerUtils

public class ColumnSerializerUtils extends Object
  • Field Details

  • 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

      public static String getInternalFileName(String fileNameBase, String field)
    • stringToUtf8InVSizeByteBuffer

      public static ByteBuffer stringToUtf8InVSizeByteBuffer(String stringVal)
      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

      public static SmooshedFileMapper mapSerializer(File smooshFile, Serializer writer, String name)
      Writes a Serializer to 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 a SmooshedFileMapper