org.usergrid.persistence.query.ir
Class WithinNode

java.lang.Object
  extended by org.usergrid.persistence.query.ir.QueryNode
      extended by org.usergrid.persistence.query.ir.WithinNode

public class WithinNode
extends QueryNode

Intermediate represnetation of the within operator

Author:
tnine

Constructor Summary
WithinNode(String propertyName, float distance, float lattitude, float longitude)
           
 
Method Summary
 float getDistance()
           
 float getLattitude()
           
 float getLongitude()
           
 String getPropertyName()
           
 String toString()
           
 void visit(NodeVisitor visitor)
          Visit this node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WithinNode

public WithinNode(String propertyName,
                  float distance,
                  float lattitude,
                  float longitude)
Parameters:
propertyName -
distance -
lattitude -
longitude -
Method Detail

getPropertyName

public String getPropertyName()
Returns:
the propertyName

getDistance

public float getDistance()
Returns:
the distance

getLattitude

public float getLattitude()
Returns:
the lattitude

getLongitude

public float getLongitude()
Returns:
the longitude

visit

public void visit(NodeVisitor visitor)
           throws Exception
Description copied from class: QueryNode
Visit this node

Specified by:
visit in class QueryNode
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.