Class PtrBuffer

java.lang.Object
org.apache.jena.dboe.base.buffer.PtrBuffer

public final class PtrBuffer extends Object
An IntBuffer with extra operations
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PtrBuffer(ByteBuffer bb, int num)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int val)
     
    void
    add(int idx, int val)
     
    final void
    Does not reset the size
    final void
    clear(int idx)
    Does not reset the size
    final void
    clear(int idx, int len)
    Does not reset the size
    final void
    copy(int srcIdx, org.apache.jena.dboe.base.buffer.BufferBase dst, int dstIdx, int len)
     
    final void
    copyToTop(org.apache.jena.dboe.base.buffer.BufferBase dst)
     
    final void
     
    final void
    decSize(int n)
     
    A duplicate which does not share anything with the original - for testing
    int
    get(int idx)
     
    int
     
    int
     
    final int
     
    final void
     
    final void
    incSize(int n)
     
    final boolean
    isClear(int idx)
    Is the record at idx set clear or not? This is done without regard to buffer size.
    final boolean
     
    final boolean
     
    final int
     
    final void
    remove(int idx)
     
    final void
    Remove top element
    void
    set(int idx, int val)
     
    final void
    setSize(int n)
     
    final void
    shiftDown(int idx)
     
    final void
    shiftDownN(int idx, int num)
     
    void
    shiftLeft(org.apache.jena.dboe.base.buffer.BufferBase other)
    Move the element from the low end of other to the high end of this
    void
    shiftRight(org.apache.jena.dboe.base.buffer.BufferBase other)
    Move the element from the high end of this to the low end of other
    final void
    shiftUp(int idx)
     
    final void
    shiftUpN(int idx, int num)
     
    final int
     
    final int
     
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • PtrBuffer

      public PtrBuffer(ByteBuffer bb, int num)
  • Method Details

    • get

      public int get(int idx)
    • getHigh

      public int getHigh()
    • getLow

      public int getLow()
    • add

      public void add(int val)
    • add

      public void add(int idx, int val)
    • set

      public void set(int idx, int val)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • duplicate

      public PtrBuffer duplicate()
      A duplicate which does not share anything with the original - for testing
    • copy

      public final void copy(int srcIdx, org.apache.jena.dboe.base.buffer.BufferBase dst, int dstIdx, int len)
    • copyToTop

      public final void copyToTop(org.apache.jena.dboe.base.buffer.BufferBase dst)
    • removeTop

      public final void removeTop()
      Remove top element
    • remove

      public final void remove(int idx)
    • clear

      public final void clear(int idx, int len)
      Does not reset the size
    • clear

      public final void clear()
      Does not reset the size
    • clear

      public final void clear(int idx)
      Does not reset the size
    • isClear

      public final boolean isClear(int idx)
      Is the record at idx set clear or not? This is done without regard to buffer size. Requires NullOut to be accurate. Testing.
    • isFull

      public final boolean isFull()
    • isEmpty

      public final boolean isEmpty()
    • incSize

      public final void incSize()
    • incSize

      public final void incSize(int n)
    • decSize

      public final void decSize()
    • decSize

      public final void decSize(int n)
    • slotLen

      public final int slotLen()
    • getSize

      public final int getSize()
    • setSize

      public final void setSize(int n)
    • size

      public final int size()
    • maxSize

      public final int maxSize()
    • shiftUp

      public final void shiftUp(int idx)
    • shiftUpN

      public final void shiftUpN(int idx, int num)
    • shiftDown

      public final void shiftDown(int idx)
    • shiftDownN

      public final void shiftDownN(int idx, int num)
    • shiftRight

      public void shiftRight(org.apache.jena.dboe.base.buffer.BufferBase other)
      Move the element from the high end of this to the low end of other
    • shiftLeft

      public void shiftLeft(org.apache.jena.dboe.base.buffer.BufferBase other)
      Move the element from the low end of other to the high end of this