Class UnionVector


  • public final class UnionVector
    extends BaseVector
    Helper type for accessing vector of unions.
    • Field Summary

      • Fields inherited from class io.objectbox.flatbuffers.BaseVector

        bb
    • Constructor Summary

      Constructors 
      Constructor Description
      UnionVector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      UnionVector __assign​(int _vector, int _element_size, java.nio.ByteBuffer _bb)
      Assigns vector access object to vector data.
      Table get​(Table obj, int j)
      Initialize any Table-derived type to point to the union at the given `index`.
      • Methods inherited from class java.lang.Object

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

      • UnionVector

        public UnionVector()
    • Method Detail

      • __assign

        public UnionVector __assign​(int _vector,
                                    int _element_size,
                                    java.nio.ByteBuffer _bb)
        Assigns vector access object to vector data.
        Parameters:
        _vector - Start data of a vector.
        _element_size - Size of a vector element.
        _bb - Table's ByteBuffer.
        Returns:
        Returns current vector access object assigned to vector data whose offset is stored at `vector`.
      • get

        public Table get​(Table obj,
                         int j)
        Initialize any Table-derived type to point to the union at the given `index`.
        Parameters:
        obj - A `Table`-derived type that should point to the union at `index`.
        j - An `int` index into the union vector.
        Returns:
        Returns the Table that points to the union at `index`.