org.objectweb.medor.query.api
Interface NestQueryNode
- Cloneable, FilteredQueryTree, QueryNode, QueryTree
- AggregateRdbQueryNode, Nest
public interface NestQueryNode
All nesting fields (group by) are projected. As an example, it is NOT possible to do
select a from r group by a, b.
This operation must be decomposed into select a, b from r group by a, b
followed by select a from result.
- Sebastien Chassande-Barrioz
addCalculatedField , addPropagatedField , getChildren , getTupleLoader , getType , isOuter , removeField , replace , setOuter , setTupleLoader , updateCalculatedField , updatePropagatedField |
getNestedField
public NestedField getNestedField()
Gives the new NestedField
getNestingFields
public PropagatedField[] getNestingFields()
Gives the the fields which will be used to define groups.
Typically, this corresponds to the "group by" clause of SQL.
Other fields can be used to construct a TupleCollection, containing
all values of such fields for a given group.
- an array of field giving the grouping fields.
replaceNestedField
public NestedField replaceNestedField(String name,
Field[] anc)
throws MedorException
Creates and adds a NestedField to the TupleStructure of the
QueryNode.
name
- is the name of the Field to be added.anc
- are the grouped Fields for the NestedField to be created.
- the newly created NestedField
MedorException
- when a Field with the same name already exists.