wt.dataops.objectcol.resolution
Class CollectionProcessor

java.lang.Object
  extended bywt.dataops.objectcol.resolution.CollectionProcessor
All Implemented Interfaces:
CollectionCreator, Externalizable, Serializable

public class CollectionProcessor
extends Object
implements CollectionCreator, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
protected static class CollectionProcessor.CollectionQueryComparator
           
protected static class CollectionProcessor.FilterProcessorComparator
           
protected static class CollectionProcessor.IntegerValComparator
           
 
Field Summary
private static String CLASSNAME
           
private  CollectionQueryProcessor[] colQueryProcessorArr
           
private static boolean CP_DEBUG
           
static long EXTERNALIZATION_VERSION_UID
           
private  FilterProcessor[] filterProcessorArr
           
private  MethodProcessor[] methodProcessorArr
           
protected static long OLD_FORMAT_VERSION_UID
           
private  LogicalOperator operator
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Constructor Summary
CollectionProcessor()
           
 
Method Summary
protected  void addLatestIterFlagToSpec(StatementSpec spec)
           
protected  void addRecursive(StatementSpecHolder specHolder, WTCollection seeds, CollectionGraph result, LogicalOperator oper, WTSet processedSeeds)
           
protected  void collectObjects(StatementSpecHolder specholder, CollectionGraph list, LogicalOperator oper, WTSet processedSeeds)
           
protected  void collectObjectsAll(StatementSpecHolder[] qs, CollectionGraph list, WTSet processedSeeds)
           
 CollectionGraph createCollection(CollectionGraph collection)
          

Supported API: false
protected  StatementSpecHolder[] createSSHArray()
           
protected  CollectionGraph filterAll(CollectionGraph newcollection)
           
protected  CollectionQueryProcessor[] getColQueryProcessorArr()
          Gets the value of the attribute: colQueryProcessorArr.
protected  FilterProcessor[] getFilterProcessorArr()
          Gets the value of the attribute: filterProcessorArr.
protected  MethodProcessor[] getMethodProcessorArr()
          Gets the value of the attribute: methodProcessorArr.
protected  LogicalOperator getOperator()
          Gets the value of the attribute: operator.
protected  boolean hasIterationFilter()
           
 void initialize(CollectionQueryProcessor[] collectionProcessors, MethodProcessor[] methodProcessors, FilterProcessor[] filterProcessors, LogicalOperator operator)
          

Supported API: false
static CollectionProcessor newCollectionProcessor(CollectionQueryProcessor[] collectionProcessors, MethodProcessor[] methodProcessors, FilterProcessor[] filterProcessors, LogicalOperator operator)
          

Supported API: false
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(CollectionProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
protected  void setColQueryProcessorArr(CollectionQueryProcessor[] a_ColQueryProcessorArr)
          Sets the value of the attribute: colQueryProcessorArr.
protected  void setFilterProcessorArr(FilterProcessor[] a_FilterProcessorArr)
          Sets the value of the attribute: filterProcessorArr.
protected  void setMethodProcessorArr(MethodProcessor[] a_MethodProcessorArr)
          Sets the value of the attribute: methodProcessorArr.
protected  void setOperator(LogicalOperator a_Operator)
          Sets the value of the attribute: operator.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

colQueryProcessorArr

private CollectionQueryProcessor[] colQueryProcessorArr

filterProcessorArr

private FilterProcessor[] filterProcessorArr

methodProcessorArr

private MethodProcessor[] methodProcessorArr

operator

private LogicalOperator operator

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

CP_DEBUG

private static boolean CP_DEBUG
Constructor Detail

CollectionProcessor

public CollectionProcessor()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(CollectionProcessor thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getColQueryProcessorArr

protected CollectionQueryProcessor[] getColQueryProcessorArr()
Gets the value of the attribute: colQueryProcessorArr.

Supported API: false

Returns:
CollectionQueryProcessor[]

setColQueryProcessorArr

protected void setColQueryProcessorArr(CollectionQueryProcessor[] a_ColQueryProcessorArr)
                                throws WTPropertyVetoException
Sets the value of the attribute: colQueryProcessorArr.

Supported API: false

Parameters:
a_ColQueryProcessorArr -
Throws:
WTPropertyVetoException

getFilterProcessorArr

protected FilterProcessor[] getFilterProcessorArr()
Gets the value of the attribute: filterProcessorArr.

Supported API: false

Returns:
FilterProcessor[]

setFilterProcessorArr

protected void setFilterProcessorArr(FilterProcessor[] a_FilterProcessorArr)
                              throws WTPropertyVetoException
Sets the value of the attribute: filterProcessorArr.

Supported API: false

Parameters:
a_FilterProcessorArr -
Throws:
WTPropertyVetoException

getMethodProcessorArr

protected MethodProcessor[] getMethodProcessorArr()
Gets the value of the attribute: methodProcessorArr.

Supported API: false

Returns:
MethodProcessor[]

setMethodProcessorArr

protected void setMethodProcessorArr(MethodProcessor[] a_MethodProcessorArr)
                              throws WTPropertyVetoException
Sets the value of the attribute: methodProcessorArr.

Supported API: false

Parameters:
a_MethodProcessorArr -
Throws:
WTPropertyVetoException

getOperator

protected LogicalOperator getOperator()
Gets the value of the attribute: operator.

Supported API: false

Returns:
LogicalOperator

setOperator

protected void setOperator(LogicalOperator a_Operator)
                    throws WTPropertyVetoException
Sets the value of the attribute: operator.

Supported API: false

Parameters:
a_Operator -
Throws:
WTPropertyVetoException

newCollectionProcessor

public static CollectionProcessor newCollectionProcessor(CollectionQueryProcessor[] collectionProcessors,
                                                         MethodProcessor[] methodProcessors,
                                                         FilterProcessor[] filterProcessors,
                                                         LogicalOperator operator)
                                                  throws WTException


Supported API: false

Parameters:
collectionProcessors -
methodProcessors -
filterProcessors -
operator -
Returns:
CollectionProcessor
Throws:
WTException

initialize

public void initialize(CollectionQueryProcessor[] collectionProcessors,
                       MethodProcessor[] methodProcessors,
                       FilterProcessor[] filterProcessors,
                       LogicalOperator operator)
                throws WTException


Supported API: false

Parameters:
collectionProcessors -
methodProcessors -
filterProcessors -
operator -
Throws:
WTException

createCollection

public CollectionGraph createCollection(CollectionGraph collection)
                                 throws WTException


Supported API: false

Specified by:
createCollection in interface CollectionCreator
Parameters:
collection -
Returns:
CollectionGraph
Throws:
WTException

collectObjects

protected void collectObjects(StatementSpecHolder specholder,
                              CollectionGraph list,
                              LogicalOperator oper,
                              WTSet processedSeeds)
                       throws WTException
Throws:
WTException

addRecursive

protected void addRecursive(StatementSpecHolder specHolder,
                            WTCollection seeds,
                            CollectionGraph result,
                            LogicalOperator oper,
                            WTSet processedSeeds)
                     throws WTException
Throws:
WTException

addLatestIterFlagToSpec

protected void addLatestIterFlagToSpec(StatementSpec spec)
                                throws WTException
Throws:
WTException

hasIterationFilter

protected boolean hasIterationFilter()

createSSHArray

protected StatementSpecHolder[] createSSHArray()
                                        throws QueryException,
                                               WTException
Throws:
QueryException
WTException

collectObjectsAll

protected void collectObjectsAll(StatementSpecHolder[] qs,
                                 CollectionGraph list,
                                 WTSet processedSeeds)
                          throws WTException
Throws:
WTException

filterAll

protected CollectionGraph filterAll(CollectionGraph newcollection)
                             throws WTException
Throws:
WTException