|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.query.FieldNameExpression
public class FieldNameExpression
An expression consisting entirely of a single field.
Constructor Summary | |
---|---|
FieldNameExpression(String fldname)
Creates a new expression by wrapping a field. |
Method Summary | |
---|---|
boolean |
appliesTo(Schema sch)
Returns true if the field is in the specified schema. |
Constant |
asConstant()
This method should never be called. |
String |
asFieldName()
Unwraps the field name and returns it. |
Constant |
evaluate(Scan s)
Evaluates the field by getting its value in the scan. |
boolean |
isConstant()
Returns false. |
boolean |
isFieldName()
Returns true. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldNameExpression(String fldname)
fldname
- the name of the wrapped fieldMethod Detail |
---|
public boolean isConstant()
isConstant
in interface Expression
Expression.isConstant()
public boolean isFieldName()
isFieldName
in interface Expression
Expression.isFieldName()
public Constant asConstant()
asConstant
in interface Expression
Expression.asConstant()
public String asFieldName()
asFieldName
in interface Expression
Expression.asFieldName()
public Constant evaluate(Scan s)
evaluate
in interface Expression
s
- the scan
Expression.evaluate(simpledb.query.Scan)
public boolean appliesTo(Schema sch)
appliesTo
in interface Expression
sch
- the schema
Expression.appliesTo(simpledb.record.Schema)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |