Interface BufferLike<A>
- All Superinterfaces:
ArrayReadable<A>
,ArrayWritable<A>
,HasArrayOps<A>
- All Known Subinterfaces:
Buffer<A>
,RangeBuffer<A>
- All Known Implementing Classes:
BufferOverArray
,RangeBufferImpl
BufferLike is a common interface for Buffer and RangeBuffer.
Even though both specializations have most methods in common, the semantics differ in subtle ways:
A buffer must support reading any slice of data within its capacity.
A range buffer only allows for reading within valid ranges and raises an exception upon violation.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Buffers with 'unlimited' capacity should return Long.MAX_VALUEMethods inherited from interface org.apache.jena.sparql.service.enhancer.slice.impl.ArrayReadable
get, readInto, readIntoRaw
Methods inherited from interface org.apache.jena.sparql.service.enhancer.slice.impl.ArrayWritable
put, write, write, write
Methods inherited from interface org.apache.jena.sparql.service.enhancer.slice.api.HasArrayOps
getArrayOps
-
Method Details
-
getCapacity
long getCapacity()Buffers with 'unlimited' capacity should return Long.MAX_VALUE
-