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