org.objectweb.medor.query.lib
Class BasicPropagatedField
java.lang.Object
BasicCloneable
org.objectweb.medor.lib.BasicField
org.objectweb.medor.query.lib.BasicQueryTreeField
org.objectweb.medor.query.lib.BasicPropagatedField
- All Implemented Interfaces:
- java.lang.Cloneable, Cloneable, java.lang.Comparable, Field, NullStatus, PropagatedField, QueryTreeField
- Direct Known Subclasses:
- BasicPropagFromNestedField
- public class BasicPropagatedField
- extends BasicQueryTreeField
- implements PropagatedField
- Author:
- Sebastien Chassande-Barrioz
- See Also:
- Serialized Form
Field Summary |
protected java.util.HashMap |
ancestors
|
protected int |
index
|
Fields inherited from interface org.objectweb.medor.api.Field |
PNAMENAME |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.medor.api.Cloneable |
clone |
Methods inherited from interface java.lang.Comparable |
compareTo |
ancestors
protected java.util.HashMap ancestors
index
protected int index
BasicPropagatedField
public BasicPropagatedField()
BasicPropagatedField
public BasicPropagatedField(java.lang.String name,
PType type,
QueryTree qt,
Field[] _ancestors)
throws MedorException
clone
public java.lang.Object clone(java.lang.Object clone,
java.util.Map obj2clone)
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class BasicQueryTreeField
- Throws:
java.lang.CloneNotSupportedException
getIndex
public int getIndex()
- Description copied from interface:
PropagatedField
- The index of this Field in the array made of the concatenation of the
tuples from the children QueryTrees.
This information is used to pick the right value at evaluation time
from this concatenated tuple to put it in the result Tuple.
- Specified by:
getIndex
in interface PropagatedField
setIndex
public void setIndex(int idx)
- Specified by:
setIndex
in interface PropagatedField
getPreviousFields
public Field[] getPreviousFields()
- Specified by:
getPreviousFields
in interface PropagatedField
getPreviousFields
public Field[] getPreviousFields(java.lang.String oldFieldName)
- Specified by:
getPreviousFields
in interface PropagatedField
getOriginFields
public Field[] getOriginFields()
- Specified by:
getOriginFields
in interface PropagatedField
getOriginFields
protected java.util.ArrayList getOriginFields(java.util.ArrayList src,
java.util.ArrayList dst)
getPrevious
protected java.util.ArrayList getPrevious()
getNullStatus
public short getNullStatus()
- Description copied from interface:
Field
- What is the status of the Field regarding null values (NullStatus).
- Specified by:
getNullStatus
in interface Field
- Overrides:
getNullStatus
in class BasicField
replacePreviousField
public void replacePreviousField(Field[] _ancestors)
- Specified by:
replacePreviousField
in interface PropagatedField