java.lang.Object
org.apache.lucene.store.DataInput
org.apache.lucene.document.ShapeDocValues.Reader
- All Implemented Interfaces:
Cloneable
- Enclosing class:
ShapeDocValues
Reads values from a ShapeDocValues Field
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classprivate final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ShapeDocValues.Reader.BBoxprivate final ByteArrayDataInputdata input array to read the docvalue data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of this stream.private SpatialQuery.EncodedRectanglereadBBox()reads the component bounding boxbytereadByte()Reads and returns a single byte.voidreadBytes(byte[] b, int offset, int len) Reads a specified number of bytes into an array at the specified offset.private SpatialQuery.EncodedRectangleresetBBox(int minX, int maxX, int minY, int maxY) resets the scratch bounding boxprotected voidrewind()rewinds the buffer to the beginningvoidskipBytes(long numBytes) Skip overnumBytesbytes.Methods inherited from class org.apache.lucene.store.DataInput
readBytes, readFloats, readGroupVInt, readInt, readInts, readLong, readLongs, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong
-
Field Details
-
data
data input array to read the docvalue data -
bbox
-
-
Constructor Details
-
Reader
Reader(BytesRef binaryValue) creates the docvalue reader from the binary value
-
-
Method Details
-
clone
Description copied from class:DataInputReturns a clone of this stream.Clones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
-
rewind
protected void rewind()rewinds the buffer to the beginning -
readBBox
reads the component bounding box -
resetBBox
resets the scratch bounding box -
readByte
Description copied from class:DataInputReads and returns a single byte.- Specified by:
readBytein classDataInput- Throws:
IOException- See Also:
-
readBytes
Description copied from class:DataInputReads a specified number of bytes into an array at the specified offset.- Specified by:
readBytesin classDataInput- Parameters:
b- the array to read bytes intooffset- the offset in the array to start storing byteslen- the number of bytes to read- Throws:
IOException- See Also:
-
skipBytes
Description copied from class:DataInputSkip overnumBytesbytes. This method may skip bytes in whatever way is most optimal, and may not have the same behavior as reading the skipped bytes. In general, negativenumBytesare not supported.- Specified by:
skipBytesin classDataInput- Throws:
IOException
-