Module org.elasticsearch.server
Package org.elasticsearch.lucene.spatial
Class TriangleTreeVisitor.TriangleTreeDecodedVisitor
java.lang.Object
org.elasticsearch.lucene.spatial.TriangleTreeVisitor.TriangleTreeDecodedVisitor
- All Implemented Interfaces:
TriangleTreeVisitor
- Direct Known Subclasses:
Component2DVisitor
- Enclosing interface:
- TriangleTreeVisitor
public abstract static class TriangleTreeVisitor.TriangleTreeDecodedVisitor
extends Object
implements TriangleTreeVisitor
Visitor for triangle interval tree which decodes the coordinates
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.lucene.spatial.TriangleTreeVisitor
TriangleTreeVisitor.TriangleTreeDecodedVisitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
push
(int maxX, int maxY) Should the visitor visit nodes that have bounds lower or equal than themaxX
andminX
provided.final boolean
push
(int minX, int minY, int maxX, int maxY) Should the visitor visit the tree given the bounding box of the tree.protected abstract boolean
pushDecoded
(double maxX, double maxY) Equivalent topush(int, int)
but coordinates are decoded.protected abstract boolean
pushDecoded
(double minX, double minY, double maxX, double maxY) Equivalent topush(int, int, int, int)
but coordinates are decoded.protected abstract boolean
pushDecodedX
(double minX) Equivalent topushX(int)
but coordinates are decoded.protected abstract boolean
pushDecodedY
(double minX) Equivalent topushY(int)
but coordinates are decoded.final boolean
pushX
(int minX) Should the visitor visit nodes that have bounds greater or equal than theminX
provided.final boolean
pushY
(int minY) Should the visitor visit nodes that have bounds greater or equal than theminY
provided.protected abstract void
visitDecodedLine
(double aX, double aY, double bX, double bY, byte metadata) Equivalent tovisitLine(int, int, int, int, byte)
but coordinates are decoded.protected abstract void
visitDecodedPoint
(double x, double y) Equivalent tovisitPoint(int, int)
but coordinates are decoded.protected abstract void
visitDecodedTriangle
(double aX, double aY, double bX, double bY, double cX, double cY, byte metadata) Equivalent tovisitTriangle(int, int, int, int, int, int, byte)
but coordinates are decoded.final void
visitLine
(int aX, int aY, int bX, int bY, byte metadata) visit a node line.final void
visitPoint
(int x, int y) visit a node point.final void
visitTriangle
(int aX, int aY, int bX, int bY, int cX, int cY, byte metadata) visit a node triangle.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.lucene.spatial.TriangleTreeVisitor
push
-
Constructor Details
-
TriangleTreeDecodedVisitor
-
-
Method Details
-
visitPoint
public final void visitPoint(int x, int y) Description copied from interface:TriangleTreeVisitor
visit a node point.- Specified by:
visitPoint
in interfaceTriangleTreeVisitor
-
visitDecodedPoint
protected abstract void visitDecodedPoint(double x, double y) Equivalent tovisitPoint(int, int)
but coordinates are decoded. -
visitLine
public final void visitLine(int aX, int aY, int bX, int bY, byte metadata) Description copied from interface:TriangleTreeVisitor
visit a node line.- Specified by:
visitLine
in interfaceTriangleTreeVisitor
-
visitDecodedLine
protected abstract void visitDecodedLine(double aX, double aY, double bX, double bY, byte metadata) Equivalent tovisitLine(int, int, int, int, byte)
but coordinates are decoded. -
visitTriangle
public final void visitTriangle(int aX, int aY, int bX, int bY, int cX, int cY, byte metadata) Description copied from interface:TriangleTreeVisitor
visit a node triangle.- Specified by:
visitTriangle
in interfaceTriangleTreeVisitor
-
visitDecodedTriangle
protected abstract void visitDecodedTriangle(double aX, double aY, double bX, double bY, double cX, double cY, byte metadata) Equivalent tovisitTriangle(int, int, int, int, int, int, byte)
but coordinates are decoded. -
pushX
public final boolean pushX(int minX) Description copied from interface:TriangleTreeVisitor
Should the visitor visit nodes that have bounds greater or equal than theminX
provided.- Specified by:
pushX
in interfaceTriangleTreeVisitor
-
pushDecodedX
protected abstract boolean pushDecodedX(double minX) Equivalent topushX(int)
but coordinates are decoded. -
pushY
public final boolean pushY(int minY) Description copied from interface:TriangleTreeVisitor
Should the visitor visit nodes that have bounds greater or equal than theminY
provided.- Specified by:
pushY
in interfaceTriangleTreeVisitor
-
pushDecodedY
protected abstract boolean pushDecodedY(double minX) Equivalent topushY(int)
but coordinates are decoded. -
push
public final boolean push(int maxX, int maxY) Description copied from interface:TriangleTreeVisitor
Should the visitor visit nodes that have bounds lower or equal than themaxX
andminX
provided.- Specified by:
push
in interfaceTriangleTreeVisitor
-
pushDecoded
protected abstract boolean pushDecoded(double maxX, double maxY) Equivalent topush(int, int)
but coordinates are decoded. -
push
public final boolean push(int minX, int minY, int maxX, int maxY) Description copied from interface:TriangleTreeVisitor
Should the visitor visit the tree given the bounding box of the tree. Called before visiting the tree.- Specified by:
push
in interfaceTriangleTreeVisitor
-
pushDecoded
protected abstract boolean pushDecoded(double minX, double minY, double maxX, double maxY) Equivalent topush(int, int, int, int)
but coordinates are decoded.
-