Class BinaryValueSegment

All Implemented Interfaces:
ValueSegment

public class BinaryValueSegment extends ObjectSegment<byte[]> implements ValueSegment
  • Field Details

  • Method Details

    • getValue

      public Value getValue(int index)
      Description copied from interface: ValueSegment
      returns Value at position index
      Specified by:
      getValue in interface ValueSegment
      Returns:
      the value at the index
    • insert

      public void insert(int pos, Value value)
      Description copied from interface: ValueSegment
      Insert data at position pos. The data at the subsequent positions is shifted to the right.
      Specified by:
      insert in interface ValueSegment
    • add

      public void add(Value v)
      Description copied from interface: ValueSegment
      Add data at the end of the segment.
      Specified by:
      add in interface ValueSegment
    • parseFrom

      public static BinaryValueSegment parseFrom(ByteBuffer bb) throws DecodingException
      Throws:
      DecodingException
    • getRange

      public ValueArray getRange(int posStart, int posStop, boolean ascending)
      Description copied from interface: ValueSegment
      returns an array containing the values in the range [posStart, posStop) if ascending or [posStop, posStart) if descending
      Specified by:
      getRange in interface ValueSegment
      Returns:
      an array containing the values in the specified range