|
||||||||||
| 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 field| Method Detail |
|---|
public boolean isConstant()
isConstant in interface ExpressionExpression.isConstant()public boolean isFieldName()
isFieldName in interface ExpressionExpression.isFieldName()public Constant asConstant()
asConstant in interface ExpressionExpression.asConstant()public String asFieldName()
asFieldName in interface ExpressionExpression.asFieldName()public Constant evaluate(Scan s)
evaluate in interface Expressions - the scan
Expression.evaluate(simpledb.query.Scan)public boolean appliesTo(Schema sch)
appliesTo in interface Expressionsch - 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 | |||||||||