Package org.aksw.commons.io.buffer.range
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 Summary
Modifier and TypeMethodDescriptiondefault com.google.common.collect.RangeSet<Long>getCoveredRanges(com.google.common.collect.Range<Long> localRange) 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 readdefault LongThe 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 offsetsdefault com.google.common.collect.RangeSet<Long>A set of ranges from which reading is valid.default RangeBuffer<A>slice(long offset, long length) Methods inherited from interface org.aksw.commons.io.buffer.array.ArrayReadable
get, newReadableChannel, readIntoRaw, sizeMethods inherited from interface org.aksw.commons.io.buffer.array.ArrayWritable
put, write, writeMethods inherited from interface org.aksw.commons.io.buffer.array.BufferLikeDelegate
getArrayOps, getCapacity, getDelegate, readInto, writeMethods inherited from interface org.aksw.commons.io.buffer.range.RangeBuffer
transferFrom, transferToMethods inherited from interface org.aksw.commons.io.input.SeekableReadableChannelSource
newReadableChannel, newReadableChannel, newReadableChannel
-
Method Details
-
getCoveredRanges
default com.google.common.collect.RangeSet<Long> getCoveredRanges(com.google.common.collect.Range<Long> localRange) Description copied from interface:RangeBufferReturn 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:
getCoveredRangesin interfaceRangeBuffer<A>
-
getRanges
Description copied from interface:RangeBufferA 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:
getRangesin interfaceRangeBuffer<A>
-
getOffsetInRanges
Description copied from interface:RangeBufferThe 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:
getOffsetInRangesin interfaceRangeBuffer<A>
-
slice
- Specified by:
slicein interfaceBufferLike<A>- Specified by:
slicein interfaceRangeBuffer<A>
-
getBackingBuffer
- Specified by:
getBackingBufferin interfaceRangeBuffer<A>
-