|
|||||||||
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.ComplexValue | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.StructValue
The StructValue
class represents the structure collections.
Fields inherited from class pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.ComplexValue |
results |
Constructor Summary | |
StructValue()
Creates a new empty struct collection. |
|
StructValue(QueryResult r)
Creates a new struct collection initialized with the r . |
|
StructValue(QueryResult r1,
QueryResult r2)
Creates a new bag collection initialized with the r1 and
r2 . |
|
StructValue(java.util.Vector v)
Creates a new struct collection initialized with the v . |
Method Summary | |
QueryResult |
getNextResultAt(int i)
Method used during evaluation of non algebraic operators. |
int |
getNumberOfResults()
Method used during evaluation of non algebraic operators. |
java.lang.String |
getTypeAsString()
Returns a name of the result ( QueryResult ) type. |
ActivationRecord |
nested()
Returns the sum of recursively called nested method for all
structure elements. |
QueryResult |
operatorAS(QueryResult r)
Method responsible for unary as operation. |
QueryResult |
operatorBAG()
Method responsible for unary bag operation. |
QueryResult |
operatorCOMMA(QueryResult r)
Method responsible for binary comma operation. |
BooleanValue |
operatorCOMPARE(QueryResult r)
Method responsible for binary compare operation. |
IntegerValue |
operatorCOUNT()
Method responsible for unary count operation. |
QueryResult |
operatorDESCENDING()
Method responsible for unary descending 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 |
operatorUNION(QueryResult r)
Method responsible for binary union operation. |
QueryResult |
operatorUNIQUE()
Method responsible for unary unique operation. |
Methods inherited from class pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.ComplexValue |
addBag, addResult, addSequence, addStruct, getFirstResult, getResultAt, getResults, getSize, isEmpty, operatorASCENDING, operatorAVERAGE, operatorCREATE, operatorCREATE, operatorCREATELOCAL, operatorCREATELOCAL, operatorCREATEPERMANENT, operatorCREATEPERMANENT, operatorDELETE, operatorDEREFERENCE, operatorEXISTS, operatorFULLDEREFERENCE, operatorGROUPAS, operatorINSERTINTO, operatorMAXIMUM, operatorMINIMUM, operatorMIXEDDEREFERENCE, operatorPRINT, operatorRENAMETO, operatorSPECIALDEREFERENCE, operatorSUM, operatorTOBAG, operatorTOSEQUENCE, operatorTOSINGLE, operatorTOSTRUCT, operatorUPDATETO, operatorXMLPRINT, setResultAt, show |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StructValue()
public StructValue(java.util.Vector v)
v
.v
- vector of elements.public StructValue(QueryResult r)
r
.r
- any result.QueryResult
public StructValue(QueryResult r1, QueryResult r2)
r1
and
r2
.r1
- any result.r2
- any result.QueryResult
Method Detail |
public java.lang.String getTypeAsString()
QueryResult
) type.getTypeAsString
in class QueryResult
QueryResult
public ActivationRecord nested()
nested
method for all
structure elements.nested
in class QueryResult
nested
method for all
structure elements.ActivationRecord
public int getNumberOfResults()
1
for all single results (identifiers, binders
and atomic values). The structure is treated as a single result!getNumberOfResults
in class ComplexValue
1
always.public QueryResult getNextResultAt(int i)
this
for all single results, despite of the value
of argument i
. The structure is treated as a single result!getNextResultAt
in class ComplexValue
i
- in single values it is ignored.this
always.QueryResult
public IntegerValue operatorCOUNT() throws TypeMismatchException
operatorCOUNT
in class ComplexValue
TypeMismatchException
- if type mismatch occurs.IntegerValue
public QueryResult operatorSTRUCT() throws TypeMismatchException
operatorSTRUCT
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorBAG() throws TypeMismatchException
operatorBAG
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
,
BagValue
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 operatorDESCENDING() throws TypeMismatchException
operatorDESCENDING
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorAS(QueryResult r) throws TypeMismatchException
operatorAS
in class QueryResult
r
- the right operand of the unary as operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BinderValue
,
StringValue
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
,
SingleValue
,
BagValue
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
,
SequenceValue
,
SingleValue
,
BagValue
public BooleanValue operatorCOMPARE(QueryResult r) throws TypeMismatchException
operatorCOMPARE
in class QueryResult
r
- the right operand of the binary compare operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BooleanValue
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
,
SequenceValue
,
BooleanValue
,
BagValue
,
ComplexValue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |