|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.query.Term
public class Term
A term is a comparison between two expressions.
Constructor Summary | |
---|---|
Term(Expression lhs,
Expression rhs)
Creates a new term that compares two expressions for equality. |
Method Summary | |
---|---|
boolean |
appliesTo(Schema sch)
Returns true if both of the term's expressions apply to the specified schema. |
Constant |
equatesWithConstant(String fldname)
Determines if this term is of the form "F=c" where F is the specified field and c is some constant. |
String |
equatesWithField(String fldname)
Determines if this term is of the form "F1=F2" where F1 is the specified field and F2 is another field. |
boolean |
isSatisfied(Scan s)
Returns true if both of the term's expressions evaluate to the same constant, with respect to the specified scan. |
int |
reductionFactor(Plan p)
Calculates the extent to which selecting on the term reduces the number of records output by a query. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Term(Expression lhs, Expression rhs)
lhs
- the LHS expressionrhs
- the RHS expressionMethod Detail |
---|
public int reductionFactor(Plan p)
p
- the query's plan
public Constant equatesWithConstant(String fldname)
fldname
- the name of the field
public String equatesWithField(String fldname)
fldname
- the name of the field
public boolean appliesTo(Schema sch)
sch
- the schema
public boolean isSatisfied(Scan s)
s
- the scan
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |