|
|||||||||
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
The ComplexValue
class represents the main class of available
complex results - collections (structures, bags and sequences).
Field Summary | |
java.util.Vector |
results
|
Constructor Summary | |
ComplexValue()
Creates a new empty collection. |
|
ComplexValue(java.util.Vector v)
Creates a new collection initialized with the v . |
Method Summary | |
ComplexValue |
addBag(QueryResult bag)
Adds a new element to the collection. |
QueryResult |
addResult(QueryResult result)
Adds a new element to the collection, additionally returns the collection. |
ComplexValue |
addSequence(QueryResult seq)
Adds a new element to the collection. |
ComplexValue |
addStruct(QueryResult str)
Adds a new element to the collection. |
QueryResult |
getFirstResult()
Returns the first element in the collection. |
QueryResult |
getNextResultAt(int i)
Method used during evaluation of non algebraic operators. |
int |
getNumberOfResults()
Method used during evaluation of non algebraic operators. |
QueryResult |
getResultAt(int i)
Returns the i-th element from the collection. |
java.util.Vector |
getResults()
Returns the elements of the collection. |
int |
getSize()
Returns the number of elements in the collection. |
boolean |
isEmpty()
Tests whether or not the collection is empty. |
QueryResult |
operatorASCENDING()
Method responsible for unary ascending operation. |
QueryResult |
operatorAVERAGE()
Method responsible for unary average operation. |
IntegerValue |
operatorCOUNT()
Method responsible for unary count operation. |
void |
operatorCREATE(EnvironmentalStack ENVS)
Method responsible for unary create operation on environmental stack. |
QueryResult |
operatorCREATE(IdentifierValue iv)
Method responsible for unary create operation. |
void |
operatorCREATELOCAL(EnvironmentalStack ENVS)
Method responsible for unary create local operation on environmental stack. |
QueryResult |
operatorCREATELOCAL(IdentifierValue iv)
Method responsible for unary create local operation. |
void |
operatorCREATEPERMANENT(EnvironmentalStack ENVS)
Method responsible for unary create permanent operation on environmental stack. |
QueryResult |
operatorCREATEPERMANENT(IdentifierValue iv)
Method responsible for unary create permanent operation. |
void |
operatorDELETE(EnvironmentalStack ENVS)
Method responsible for unary delete operation. |
QueryResult |
operatorDEREFERENCE()
Returns the result of dereference operation on complex result, which is this complex result itself. |
BooleanValue |
operatorEXISTS()
Method responsible for unary exists operation. |
QueryResult |
operatorFULLDEREFERENCE()
Returns the result of full dereference operation on complex result, which is this complex result with recursively fully dereferenced elements. |
BinderValue |
operatorGROUPAS(QueryResult r)
Method responsible for unary group as operation. |
void |
operatorINSERTINTO(QueryResult r,
EnvironmentalStack ENVS)
Method responsible for binary insert into operation. |
QueryResult |
operatorMAXIMUM()
Method responsible for unary maximum operation. |
QueryResult |
operatorMINIMUM()
Method responsible for unary minimum operation. |
QueryResult |
operatorMIXEDDEREFERENCE()
Returns the result of mixed dereference operation on complex result, which is this complex result with recursively mixed dereferenced elements. |
void |
operatorPRINT(java.lang.String st,
java.io.PrintWriter out)
Prints the actual atomic result in the normal fashion. |
void |
operatorRENAMETO(QueryResult r,
EnvironmentalStack ENVS)
Method responsible for binary rename to operation. |
QueryResult |
operatorSPECIALDEREFERENCE()
Returns the result of special dereference operation on complex result, which is this complex result with recursively specially dereferenced elements. |
QueryResult |
operatorSUM()
Method responsible for unary sum operation. |
BagValue |
operatorTOBAG()
Method responsible for unary tobag operation. |
SequenceValue |
operatorTOSEQUENCE()
Method responsible for unary tosequence operation. |
QueryResult |
operatorTOSINGLE()
Method responsible for unary tosingle operation. |
StructValue |
operatorTOSTRUCT()
Method responsible for unary tostruct operation. |
void |
operatorUPDATETO(QueryResult r)
Method responsible for binary update to operation. |
void |
operatorXMLPRINT(java.lang.String st,
java.io.PrintWriter out)
Prints the actual atomic result in the xml fashion. |
void |
setResultAt(int i,
QueryResult r)
Sets the i-th element value to r in the collection. |
void |
show(java.lang.String st,
java.io.PrintWriter out)
Prints the actual atomic result in the raw fashion. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Vector results
Constructor Detail |
public ComplexValue()
public ComplexValue(java.util.Vector v)
v
.v
- vector of elements.Method Detail |
public QueryResult getResultAt(int i)
i
- the index of element to be returned.QueryResult
public void setResultAt(int i, QueryResult r)
r
in the collection.i
- the index of element to be updated.QueryResult
public int getSize()
public QueryResult addResult(QueryResult result)
result
- an element to be added.QueryResult
public boolean isEmpty()
public QueryResult getFirstResult()
QueryResult
public java.util.Vector getResults()
public int getNumberOfResults()
StructValue
).getNumberOfResults
in class QueryResult
public QueryResult getNextResultAt(int i)
i
of the collection, except structure
(StructValue
).getNextResultAt
in class QueryResult
i
- the i-th element to be returned.QueryResult
public ComplexValue addBag(QueryResult bag)
bag
- an element to be added.QueryResult
,
ComplexValue
,
BagValue
public ComplexValue addSequence(QueryResult seq)
seq
- an element to be added.QueryResult
,
ComplexValue
,
SequenceValue
public ComplexValue addStruct(QueryResult str)
str
- an element to be added.QueryResult
,
ComplexValue
,
StructValue
public QueryResult operatorDEREFERENCE() throws TypeMismatchException
operatorDEREFERENCE
in class QueryResult
TypeMismatchException
- never in this case.QueryResult
public QueryResult operatorFULLDEREFERENCE() throws TypeMismatchException
operatorFULLDEREFERENCE
in class QueryResult
TypeMismatchException
- never in this case.QueryResult
public QueryResult operatorSPECIALDEREFERENCE() throws TypeMismatchException
operatorSPECIALDEREFERENCE
in class QueryResult
TypeMismatchException
- never in this case.QueryResult
public QueryResult operatorMIXEDDEREFERENCE() throws TypeMismatchException
operatorMIXEDDEREFERENCE
in class QueryResult
TypeMismatchException
- never in this case.QueryResult
public void show(java.lang.String st, java.io.PrintWriter out)
out
object.show
in class QueryResult
st
- the string which is a auxiliary tabulator.out
- the object responsible for displaying information.TypeMismatchException
- never in this case.public void operatorPRINT(java.lang.String st, java.io.PrintWriter out) throws TypeMismatchException
out
object.operatorPRINT
in class QueryResult
st
- the string which is a auxiliary tabulator.out
- the object responsible for displaying information.TypeMismatchException
- never in this case.public void operatorXMLPRINT(java.lang.String st, java.io.PrintWriter out) throws TypeMismatchException
out
object.operatorXMLPRINT
in class QueryResult
st
- the string which is a auxiliary tabulator.out
- the object responsible for displaying information.TypeMismatchException
- never in this case.public IntegerValue operatorCOUNT() throws TypeMismatchException
operatorCOUNT
in class QueryResult
TypeMismatchException
- if type mismatch occurs.IntegerValue
public BooleanValue operatorEXISTS() throws TypeMismatchException
operatorEXISTS
in class QueryResult
TypeMismatchException
- if type mismatch occurs.BooleanValue
public QueryResult operatorSUM() throws TypeMismatchException
operatorSUM
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorAVERAGE() throws TypeMismatchException
operatorAVERAGE
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorMINIMUM() throws TypeMismatchException
operatorMINIMUM
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorMAXIMUM() throws TypeMismatchException
operatorMAXIMUM
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorTOSINGLE() throws TypeMismatchException
operatorTOSINGLE
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public StructValue operatorTOSTRUCT() throws TypeMismatchException
operatorTOSTRUCT
in class QueryResult
TypeMismatchException
- if type mismatch occurs.StructValue
public BagValue operatorTOBAG() throws TypeMismatchException
operatorTOBAG
in class QueryResult
TypeMismatchException
- if type mismatch occurs.BagValue
public SequenceValue operatorTOSEQUENCE() throws TypeMismatchException
operatorTOSEQUENCE
in class QueryResult
TypeMismatchException
- if type mismatch occurs.SequenceValue
public QueryResult operatorASCENDING() throws TypeMismatchException
operatorASCENDING
in class QueryResult
TypeMismatchException
- if type mismatch occurs.QueryResult
public void operatorDELETE(EnvironmentalStack ENVS) throws TypeMismatchException
operatorDELETE
in class QueryResult
ENVS
- environmental stack which has to be updated.TypeMismatchException
- if type mismatch occurs.EnvironmentalStack
public QueryResult operatorCREATE(IdentifierValue iv) throws TypeMismatchException
operatorCREATE
in class QueryResult
id
- Identifier of the parent object in object store.TypeMismatchException
.TypeMismatchException
- if type mismatch occurs.IdentifierValue
,
BagValue
,
QueryResult
public void operatorCREATE(EnvironmentalStack ENVS) throws TypeMismatchException
operatorCREATE
in class QueryResult
ENVS
- environmental stack which has to be updated.TypeMismatchException
.TypeMismatchException
- if type mismatch occurs.EnvironmentalStack
public QueryResult operatorCREATELOCAL(IdentifierValue iv) throws TypeMismatchException
operatorCREATELOCAL
in class QueryResult
id
- Identifier of the parent object in object store.TypeMismatchException
.TypeMismatchException
- if type mismatch occurs.IdentifierValue
,
BagValue
,
QueryResult
public void operatorCREATELOCAL(EnvironmentalStack ENVS) throws TypeMismatchException
operatorCREATELOCAL
in class QueryResult
ENVS
- environmental stack which has to be updated.TypeMismatchException
.TypeMismatchException
- if type mismatch occurs.EnvironmentalStack
public QueryResult operatorCREATEPERMANENT(IdentifierValue iv) throws TypeMismatchException
operatorCREATEPERMANENT
in class QueryResult
id
- Identifier of the parent object in object store.TypeMismatchException
.TypeMismatchException
- if type mismatch occurs.IdentifierValue
,
BagValue
,
QueryResult
public void operatorCREATEPERMANENT(EnvironmentalStack ENVS) throws TypeMismatchException
operatorCREATEPERMANENT
in class QueryResult
ENVS
- environmental stack which has to be updated.TypeMismatchException
.TypeMismatchException
- if type mismatch occurs.EnvironmentalStack
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 void operatorRENAMETO(QueryResult r, EnvironmentalStack ENVS) throws TypeMismatchException
operatorRENAMETO
in class QueryResult
r
- the right operand of the binary rename to operator.ENVS
- environmental stack which has to be updated.TypeMismatchException
- if type mismatch occurs.QueryResult
,
EnvironmentalStack
public void operatorINSERTINTO(QueryResult r, EnvironmentalStack ENVS) throws TypeMismatchException
operatorINSERTINTO
in class QueryResult
r
- the right operand of the binary insert into operator.ENVS
- environmental stack which has to be updated.TypeMismatchException
- if type mismatch occurs.QueryResult
,
EnvironmentalStack
public void operatorUPDATETO(QueryResult r) throws TypeMismatchException
operatorUPDATETO
in class QueryResult
r
- the right operand of the binary update to operator.TypeMismatchException
- if type mismatch occurs.QueryResult
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |