java.lang.Object
org.apache.jena.sparql.service.enhancer.slice.impl.BufferOverArray<A>
All Implemented Interfaces:
HasArrayOps<A>, ArrayReadable<A>, ArrayWritable<A>, Buffer<A>, BufferLike<A>

public class BufferOverArray<A> extends Object implements Buffer<A>
  • Constructor Details

    • BufferOverArray

      public BufferOverArray(ArrayOps<A> arrayOps, int size)
    • BufferOverArray

      public BufferOverArray(ArrayOps<A> arrayOps, A array)
  • Method Details

    • create

      public static <A> BufferOverArray<A> create(ArrayOps<A> arrayOps, int size)
    • create

      public static <A> BufferOverArray<A> create(ArrayOps<A> arrayOps, A array)
    • write

      public void write(long offsetInBuffer, A arrayWithItemsOfTypeT, int arrOffset, int arrLength)
      Description copied from interface: ArrayWritable
      The method that needs to be implemented; all other methods default-delegate to this one.
      Specified by:
      write in interface ArrayWritable<A>
    • getCapacity

      public long getCapacity()
      Description copied from interface: BufferLike
      Buffers with 'unlimited' capacity should return Long.MAX_VALUE
      Specified by:
      getCapacity in interface BufferLike<A>
    • getArrayOps

      public ArrayOps<A> getArrayOps()
      Specified by:
      getArrayOps in interface HasArrayOps<A>
    • readInto

      public int readInto(A tgt, int tgtOffset, long srcOffset, int length)
      Specified by:
      readInto in interface ArrayReadable<A>
    • put

      public void put(long offset, Object item)
      Specified by:
      put in interface ArrayWritable<A>
    • get

      public Object get(long index)
      Specified by:
      get in interface ArrayReadable<A>