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 class
private final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ShapeDocValues.Reader.BBox
private final ByteArrayDataInput
data input array to read the docvalue data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a clone of this stream.private SpatialQuery.EncodedRectangle
readBBox()
reads the component bounding boxbyte
readByte()
Reads and returns a single byte.void
readBytes
(byte[] b, int offset, int len) Reads a specified number of bytes into an array at the specified offset.private SpatialQuery.EncodedRectangle
resetBBox
(int minX, int maxX, int minY, int maxY) resets the scratch bounding boxprotected void
rewind()
rewinds the buffer to the beginningvoid
skipBytes
(long numBytes) Skip overnumBytes
bytes.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:DataInput
Returns 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:DataInput
Reads and returns a single byte.- Specified by:
readByte
in classDataInput
- Throws:
IOException
- See Also:
-
readBytes
Description copied from class:DataInput
Reads a specified number of bytes into an array at the specified offset.- Specified by:
readBytes
in 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:DataInput
Skip overnumBytes
bytes. 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, negativenumBytes
are not supported.- Specified by:
skipBytes
in classDataInput
- Throws:
IOException
-