|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A TupleStructure is the basic data structure manipulated when expressing, optimizing and evaluating MEDOR queries.
A TupleStructure is composed of typed, named fields.
Field names are unique within a given TupleStructure.
Field
Method Summary | |
---|---|
boolean |
contains(Field f)
Checks whether a given input Field is present in the current TupleStructure. |
boolean |
contains(java.lang.String fieldName)
Checks whether the current TupleStructure has a field of a given name. |
Field |
getField(int fieldrank)
Returns the Field of a given rank in the current TupleStructure. |
Field |
getField(java.lang.String fieldname)
Returns a Field object present in this TupleStructure given its name. |
int |
getFieldRank(Field f)
Returns the rank of a given Field in the current TupleStructure. |
Field[] |
getFields()
Returns the array of Fields in the current TupleStructure. |
int |
getSize()
Returns the size of the current TupleStructure, ie the number of Fields. |
Methods inherited from interface org.objectweb.medor.api.Cloneable |
---|
clone |
Method Detail |
public Field[] getFields()
public Field getField(java.lang.String fieldname) throws MedorException
fieldname
- the name of the searched Field
MedorException
- if no Field corresponds to the input name.public Field getField(int fieldrank) throws MedorException
fieldrank
- the rank of the searched Field in the current
TupleStructure
MedorException
- if the input rank is too large.public int getFieldRank(Field f) throws MedorException
f
- the Field for which the rank is searched.
MedorException
- if there is no such Field in the current
TupleStructure.public int getSize()
public boolean contains(Field f)
f
- the Field for which to check whether it is present in the
current TupleStructure.
public boolean contains(java.lang.String fieldName)
fieldName
- the Field name for which to check whether the current
TupleStructure contains a Field.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |