Class DictionaryEncoding


public final class DictionaryEncoding extends
  • Constructor Details

    • DictionaryEncoding

      public DictionaryEncoding()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsDictionaryEncoding

      public static DictionaryEncoding getRootAsDictionaryEncoding(ByteBuffer _bb)
    • getRootAsDictionaryEncoding

      public static DictionaryEncoding getRootAsDictionaryEncoding(ByteBuffer _bb, DictionaryEncoding obj)
    • __init

      public void __init(int _i, ByteBuffer _bb)
    • __assign

      public DictionaryEncoding __assign(int _i, ByteBuffer _bb)
    • id

      public long id()
      The known dictionary id in the application where this data is used. In the file or streaming formats, the dictionary ids are found in the DictionaryBatch messages
    • indexType

      public Int indexType()
      The dictionary indices are constrained to be non-negative integers. If this field is null, the indices must be signed int32. To maximize cross-language compatibility and performance, implementations are recommended to prefer signed integer types over unsigned integer types and to avoid uint64 indices unless they are required by an application.
    • indexType

      public Int indexType(Int obj)
    • isOrdered

      public boolean isOrdered()
      By default, dictionaries are not ordered, or the order does not have semantic meaning. In some statistical, applications, dictionary-encoding is used to represent ordered categorical data, and we provide a way to preserve that metadata here
    • dictionaryKind

      public short dictionaryKind()
    • createDictionaryEncoding

      public static int createDictionaryEncoding( builder, long id, int indexTypeOffset, boolean isOrdered, short dictionaryKind)
    • startDictionaryEncoding

      public static void startDictionaryEncoding( builder)
    • addId

      public static void addId( builder, long id)
    • addIndexType

      public static void addIndexType( builder, int indexTypeOffset)
    • addIsOrdered

      public static void addIsOrdered( builder, boolean isOrdered)
    • addDictionaryKind

      public static void addDictionaryKind( builder, short dictionaryKind)
    • endDictionaryEncoding

      public static int endDictionaryEncoding( builder)