|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.QueryResult | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.SingleValue
The SingleValue
class represents the main class of available
single results (binders, identifiers and atomic values).
Constructor Summary | |
SingleValue()
|
Method Summary | |
QueryResult |
getNextResultAt(int i)
Method used during evaluation of non algebraic operators. |
int |
getNumberOfResults()
Method used during evaluation of non algebraic operators. |
QueryResult |
operatorAS(QueryResult r)
Method responsible for unary group as operation. |
QueryResult |
operatorASCENDING()
Method responsible for unary ascending operation. |
QueryResult |
operatorBAG()
Method responsible for unary bag operation. |
QueryResult |
operatorCOMMA(QueryResult r)
Method responsible for binary comma operation. |
IntegerValue |
operatorCOUNT()
Method responsible for unary count operation. |
BooleanValue |
operatorEXISTS()
Method responsible for unary exists operation. |
BinderValue |
operatorGROUPAS(QueryResult r)
Method responsible for unary as operation. |
BooleanValue |
operatorINCLUSION(QueryResult r)
Method responsible for binary inclusion operation. |
QueryResult |
operatorSEQUENCE()
Method responsible for unary sequence operation. |
QueryResult |
operatorSTRUCT()
Method responsible for unary struct operation. |
QueryResult |
operatorTOSINGLE()
Method responsible for unary tosingle operation. |
QueryResult |
operatorUNION(QueryResult r)
Method responsible for binary union operation. |
QueryResult |
operatorUNIQUE()
Method responsible for unary unique operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SingleValue()
Method Detail |
public int getNumberOfResults()
1
for all single results (identifiers, binders
and atomic values).getNumberOfResults
in class QueryResult
1
always.public QueryResult getNextResultAt(int i)
this
for all single results, despite of the value
of argument i
.getNextResultAt
in class QueryResult
i
- in single values it is ignored.this
always.QueryResult
public QueryResult operatorTOSINGLE() throws TypeMismatchException
operatorTOSINGLE
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public BooleanValue operatorEXISTS() throws TypeMismatchException
operatorEXISTS
in class QueryResult
TypeMismatchException
- if type mismatch occurs.BooleanValue
public IntegerValue operatorCOUNT() throws TypeMismatchException
operatorCOUNT
in class QueryResult
TypeMismatchException
- if type mismatch occurs.IntegerValue
public QueryResult operatorBAG() throws TypeMismatchException
operatorBAG
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
,
BagValue
public QueryResult operatorSTRUCT() throws TypeMismatchException
operatorSTRUCT
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
,
StructValue
public QueryResult operatorSEQUENCE() throws TypeMismatchException
operatorSEQUENCE
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
,
SequenceValue
public QueryResult operatorUNIQUE() throws TypeMismatchException
operatorUNIQUE
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorASCENDING() throws TypeMismatchException
operatorASCENDING
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public BinderValue operatorGROUPAS(QueryResult r) throws TypeMismatchException
operatorGROUPAS
in class QueryResult
r
- the right operand of the unary as operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BinderValue
,
StringValue
public QueryResult operatorAS(QueryResult r) throws TypeMismatchException
operatorAS
in class QueryResult
r
- the right operand of the unary group as operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BinderValue
,
StringValue
public QueryResult operatorUNION(QueryResult r) throws TypeMismatchException
operatorUNION
in class QueryResult
r
- the right operand of the binary union operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
IntegerValue
,
StructValue
,
BagValue
public QueryResult operatorCOMMA(QueryResult r) throws TypeMismatchException
operatorCOMMA
in class QueryResult
r
- the right operand of the binary comma operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
SequenceValue
,
StructValue
,
BagValue
public BooleanValue operatorINCLUSION(QueryResult r) throws TypeMismatchException
operatorINCLUSION
in class QueryResult
r
- the right operand of the binary inclusion operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BooleanValue
,
SequenceValue
,
BagValue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |