Package org.apache.lucene.document
Class ShapeDocValues.Writer
java.lang.Object
org.apache.lucene.document.ShapeDocValues.Writer
- Enclosing class:
- ShapeDocValues
Writes data from a ShapeDocValues field to a data output array
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) BytesRef
private void
private void
writeComponent
(ShapeDocValues.TreeNode node, int pMaxX, int pMaxY) Serializes a component (POINT, LINE, or TRIANGLE) in the most compact way possibleprivate void
Writes the header metadata in the most compact way possibleprivate void
Serializes a node in the most compact way possibleprivate void
writeTree
(List<ShapeDocValues.TreeNode> dfsSerialized)
-
Field Details
-
output
-
bytesRef
-
-
Constructor Details
-
Writer
Writer(List<ShapeDocValues.TreeNode> dfsSerialized) throws IOException - Throws:
IOException
-
-
Method Details
-
getBytesRef
BytesRef getBytesRef() -
writeTree
- Throws:
IOException
-
writeNode
Serializes a node in the most compact way possible- Throws:
IOException
-
writeComponent
Serializes a component (POINT, LINE, or TRIANGLE) in the most compact way possible- Throws:
IOException
-
writeHeader
Writes the header metadata in the most compact way possible- Throws:
IOException
-
writeBounds
- Throws:
IOException
-