Module org.elasticsearch.server
Package org.elasticsearch.lucene.spatial
Interface TriangleTreeVisitor
- All Known Implementing Classes:
Component2DVisitor
,TriangleTreeVisitor.TriangleTreeDecodedVisitor
public interface TriangleTreeVisitor
Visitor for triangle interval tree.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Visitor for triangle interval tree which decodes the coordinates -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
abFromTriangle
(byte metadata) static boolean
bcFromTriangle
(byte metadata) static boolean
caFromTriangle
(byte metadata) boolean
push()
Should the visitor keep visiting the tree.boolean
push
(int maxX, int maxY) Should the visitor visit nodes that have bounds lower or equal than themaxX
andminX
provided.boolean
push
(int minX, int minY, int maxX, int maxY) Should the visitor visit the tree given the bounding box of the tree.boolean
pushX
(int minX) Should the visitor visit nodes that have bounds greater or equal than theminX
provided.boolean
pushY
(int minY) Should the visitor visit nodes that have bounds greater or equal than theminY
provided.void
visitLine
(int aX, int aY, int bX, int bY, byte metadata) visit a node line.void
visitPoint
(int x, int y) visit a node point.void
visitTriangle
(int aX, int aY, int bX, int bY, int cX, int cY, byte metadata) visit a node triangle.
-
Method Details
-
visitPoint
void visitPoint(int x, int y) visit a node point. -
visitLine
void visitLine(int aX, int aY, int bX, int bY, byte metadata) visit a node line. -
visitTriangle
void visitTriangle(int aX, int aY, int bX, int bY, int cX, int cY, byte metadata) visit a node triangle. -
push
boolean push()Should the visitor keep visiting the tree. Called after visiting a node or skipping a tree branch, if the return value isfalse
, no more nodes will be visited. -
pushX
boolean pushX(int minX) Should the visitor visit nodes that have bounds greater or equal than theminX
provided. -
pushY
boolean pushY(int minY) Should the visitor visit nodes that have bounds greater or equal than theminY
provided. -
push
boolean push(int maxX, int maxY) Should the visitor visit nodes that have bounds lower or equal than themaxX
andminX
provided. -
push
boolean push(int minX, int minY, int maxX, int maxY) Should the visitor visit the tree given the bounding box of the tree. Called before visiting the tree. -
abFromTriangle
static boolean abFromTriangle(byte metadata) -
bcFromTriangle
static boolean bcFromTriangle(byte metadata) -
caFromTriangle
static boolean caFromTriangle(byte metadata)
-