|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.matching.converter.MatchTupleConverter
Converts the matchfields configured for a SystemObject into a flat tuple structure (Array of array)
Nested Class Summary | |
(package private) class |
MatchTupleConverter.ChildInfo
Utility class to return structured info from methods regarding the object node type of a child, mapping from the object node type to the corresponding ePath The lack of accessors is by design for performance reasons. |
(package private) class |
MatchTupleConverter.FieldInfo
Utility class to return structured info from methods regarding relevant fields on an object node, mapping from the field name to the corresponding ePath |
(package private) class |
MatchTupleConverter.TokenInfo
Utility class to return structured info from methods regarding EPath tokens The lack of accessors is by design for performance reasons. |
(package private) class |
MatchTupleConverter.TupleInfo
Utility class to return structured info from methods regarding the tuples and the ePaths corresponding to each tuple column |
Constructor Summary | |
MatchTupleConverter()
Creates a new instance of MatchTupleConverter |
Method Summary | |
MatchTuples |
convert(SystemObject base)
Converts the matchfields configured for a SystemObject into a flat tuple structure (Array of array) |
(package private) java.util.ArrayList |
createTuples(java.util.ArrayList first,
java.util.ArrayList second)
Given two ArrayLists of ArrayLists, create all the possible combinations |
(package private) java.util.ArrayList |
getChildEPaths(MatchTupleConverter.ChildInfo[] childrenMatchFields,
java.lang.String tag)
|
(package private) MatchTupleConverter.TupleInfo |
getMatchTuples(ObjectNode objNode,
java.util.ArrayList ePaths,
int ePathNodePos)
Recursive method to obtain all the tuples of the match columns of an object node and it's children. |
(package private) java.util.ArrayList |
getMatchTuplesIter(ObjectNode objNode,
java.util.ArrayList ePaths,
java.util.ArrayList validEPaths,
int ePathNodePos,
int initialChildFlag)
|
(package private) MatchTupleConverter.TokenInfo |
getRelevantTokens(java.util.ArrayList ePaths,
int parentEPathNodePos)
Looks at the ePaths at the given position and figures out what direct children are present in the ePath and what fields are present. |
void |
setDateConversionFormat(java.text.DateFormat aFormat)
Sets the format for converting java.util.Date fields into Strings to convert into the the String array tuple. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MatchTupleConverter() throws java.lang.InstantiationException
java.lang.InstantiationException
- if Configuration Service can not be
instantiatedMethod Detail |
public MatchTuples convert(SystemObject base) throws ObjectException, EPathException
base
- the base SystemObject to convert into tuples
ObjectException
- If retrieving the SystemObject values fails
EPathException
- If the configured EPaths for matching are invalidjava.util.ArrayList createTuples(java.util.ArrayList first, java.util.ArrayList second)
first
- the first ArrayList to combine with the secondsecond
- the second ArrayList to combine with the first
java.util.ArrayList getChildEPaths(MatchTupleConverter.ChildInfo[] childrenMatchFields, java.lang.String tag)
MatchTupleConverter.TupleInfo getMatchTuples(ObjectNode objNode, java.util.ArrayList ePaths, int ePathNodePos) throws ObjectException
ObjectException
- if the data for the match fields
could not be retrieved from the ObjectNodejava.util.ArrayList getMatchTuplesIter(ObjectNode objNode, java.util.ArrayList ePaths, java.util.ArrayList validEPaths, int ePathNodePos, int initialChildFlag) throws ObjectException
ObjectException
MatchTupleConverter.TokenInfo getRelevantTokens(java.util.ArrayList ePaths, int parentEPathNodePos)
public void setDateConversionFormat(java.text.DateFormat aFormat)
aFormat
- the new DateFormat to use for conversion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.