Class 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
    • Constructor Detail

      • Writer

        Writer​(java.util.List<ShapeDocValues.TreeNode> dfsSerialized)
        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • 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