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 Classes -
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 TypeMethodDescriptionprivate 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 static booleanreadHasLeftSubtree(int bits) reads if the left subtree is nullprivate static booleanreadHasRightSubtree(int bits) reads if the right subtree is nullprivate static ShapeField.DecodedTriangle.TYPEreadType(int bits) reads the component type (POINT, LINE, TRIANGLE) such that triangle gives the highest variable compressionprivate 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
clone, readBytes, readFloats, readGroupVInt, readGroupVInts, 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
-
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
-
readType
reads the component type (POINT, LINE, TRIANGLE) such that triangle gives the highest variable compression -
readHasLeftSubtree
private static boolean readHasLeftSubtree(int bits) reads if the left subtree is null -
readHasRightSubtree
private static boolean readHasRightSubtree(int bits) reads if the right subtree is null
-