Class Map


public final class Map extends
A Map is a logical nested type that is represented as List<entries: Struct<key: K, value: V>> In this layout, the keys and values are each respectively contiguous. We do not constrain the key and value types, so the application is responsible for ensuring that the keys are hashable and unique. Whether the keys are sorted may be set in the metadata for this field. In a field with Map type, the field has a child Struct field, which then has two children: key type and the second the value type. The names of the child fields may be respectively "entries", "key", and "value", but this is not enforced. Map ```text - child[0] entries: Struct - child[0] key: K - child[1] value: V ``` Neither the "entries" field nor the "key" field may be nullable. The metadata is structured so that Arrow systems without special handling for Map can make Map an alias for List. The "layout" attribute for the Map field must have the same contents as a List.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    static final class 
  • Field Summary

    Fields inherited from class

    bb, bb_pos
  • Constructor Summary

  • Method Summary

    Modifier and Type
    __assign(int _i, ByteBuffer _bb)
    __init(int _i, ByteBuffer _bb)
    static void
    addKeysSorted( builder, boolean keysSorted)
    static int
    createMap( builder, boolean keysSorted)
    static int
    endMap( builder)
    static Map
    static Map
    Set to true if the keys within each value are sorted
    static void
    startMap( builder)
    static void

    Methods inherited from class

    __has_identifier, __indirect, __indirect, __offset, __offset, __reset, __reset, __string, __string, __union, __union, __vector, __vector_as_bytebuffer, __vector_in_bytebuffer, __vector_len, compareStrings, compareStrings, getByteBuffer, keysCompare, sortTables

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Map

      public Map()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsMap

      public static Map getRootAsMap(ByteBuffer _bb)
    • getRootAsMap

      public static Map getRootAsMap(ByteBuffer _bb, Map obj)
    • __init

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

      public Map __assign(int _i, ByteBuffer _bb)
    • keysSorted

      public boolean keysSorted()
      Set to true if the keys within each value are sorted
    • createMap

      public static int createMap( builder, boolean keysSorted)
    • startMap

      public static void startMap( builder)
    • addKeysSorted

      public static void addKeysSorted( builder, boolean keysSorted)
    • endMap

      public static int endMap( builder)