Interface RangeBufferDelegate<A>

All Superinterfaces:
ArrayReadable<A>, ArrayWritable<A>, BufferLike<A>, BufferLikeDelegate<A, RangeBuffer<A>>, HasArrayOps<A>, RangeBuffer<A>, ReadableChannelFactory<A>, ReadableChannelSource<A>, SeekableReadableChannelSource<A>
All Known Subinterfaces:
RangeBufferDelegateMutable<A>
All Known Implementing Classes:
RangeBufferDelegateBase, RangeBufferDelegateMutableImpl

public interface RangeBufferDelegate<A> extends BufferLikeDelegate<A, RangeBuffer<A>>, RangeBuffer<A>
  • Method Details

    • getCoveredRanges

      default com.google.common.collect.RangeSet<Long> getCoveredRanges(com.google.common.collect.Range<Long> localRange)
      Description copied from interface: RangeBuffer
      Return a set of contributions by this buffer for the given lookup range While this method does not expose which parts of the global range are covered, this method allows to check whether there are any gaps in the read
      Specified by:
      getCoveredRanges in interface RangeBuffer<A>
    • getRanges

      default com.google.common.collect.RangeSet<Long> getRanges()
      Description copied from interface: RangeBuffer
      A set of ranges from which reading is valid. The range set may be shared among several range buffers and may thus include ranges outside of the range formed by the buffer's offset and capacity
      Specified by:
      getRanges in interface RangeBuffer<A>
    • getOffsetInRanges

      default Long getOffsetInRanges()
      Description copied from interface: RangeBuffer
      The offset within the range set where this buffer starts; may be null if the offset cannot be represented in a single value such as in a union of two buffers which have different offsets
      Specified by:
      getOffsetInRanges in interface RangeBuffer<A>
    • slice

      default RangeBuffer<A> slice(long offset, long length)
      Specified by:
      slice in interface BufferLike<A>
      Specified by:
      slice in interface RangeBuffer<A>
    • getBackingBuffer

      default Buffer<A> getBackingBuffer()
      Specified by:
      getBackingBuffer in interface RangeBuffer<A>