Class Marker

    • Constructor Detail

      • Marker

        public Marker​(Block valueBlock,
                      Marker.Bound bound,
                      boolean nullValue)
        LOWER UNBOUNDED is specified with an empty value and a ABOVE bound UPPER UNBOUNDED is specified with an empty value and a BELOW bound
      • Marker

        protected Marker​(Block block,
                         int valuePosition,
                         Marker.Bound bound,
                         boolean nullValue)
    • Method Detail

      • getType

        public org.apache.arrow.vector.types.pojo.ArrowType getType()
        The Arrow Type of the field this constraint applies to.
        Specified by:
        getType in interface ValueMarker
        Returns:
        The ArrowType of the field this ValueSet applies to.
      • getValue

        public Object getValue()
        Retrieves the value held in this Marker.
        Specified by:
        getValue in interface ValueMarker
        Returns:
        The value.
      • getBound

        public Marker.Bound getBound()
        Retrieves the Bound (BELOW, EXACTLY, ABOVE, etce...) used by this Marker.
        Specified by:
        getBound in interface ValueMarker
        Returns:
        The Bound.
      • getSchema

        public org.apache.arrow.vector.types.pojo.Schema getSchema()
        Provides access to the Apache Arrow Schema used to store the value of this marker.
        Returns:
        The Apache Arrow Schema used to store the value of this marker.
      • getValueBlock

        public Block getValueBlock()
        Provides access to the Apache Arrow Block used to store the value of this marker.
        Returns:
        The Apache Arrow Block used to store the value of this marker.
      • isAdjacent

        public boolean isAdjacent​(Marker other)
        Adjacency is defined by two Markers being infinitesimally close to each other. This means they must share the same value and have adjacent Bounds.
      • greaterAdjacent

        public Marker greaterAdjacent()
      • lesserAdjacent

        public Marker lesserAdjacent()
      • upperUnbounded

        public static Marker upperUnbounded​(BlockAllocator allocator,
                                            org.apache.arrow.vector.types.pojo.ArrowType type)
      • lowerUnbounded

        public static Marker lowerUnbounded​(BlockAllocator allocator,
                                            org.apache.arrow.vector.types.pojo.ArrowType type)
      • above

        public static Marker above​(BlockAllocator allocator,
                                   org.apache.arrow.vector.types.pojo.ArrowType type,
                                   Object value)
      • exactly

        public static Marker exactly​(BlockAllocator allocator,
                                     org.apache.arrow.vector.types.pojo.ArrowType type,
                                     Object value)
      • nullMarker

        public static Marker nullMarker​(BlockAllocator allocator,
                                        org.apache.arrow.vector.types.pojo.ArrowType type)
      • below

        public static Marker below​(BlockAllocator allocator,
                                   org.apache.arrow.vector.types.pojo.ArrowType type,
                                   Object value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object