|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.parser.DAXParserFactory
public class DAXParserFactory
A factory class to load the appropriate DAX Parser and Callback implementations that need to be passed to the DAX Parser.
| Field Summary | |
|---|---|
static String |
DAX_PARSER2_CLASS
The DAXParser3 classname |
static String |
DAX_PARSER3_CLASS
The DAXParser3 classname |
static long |
DAX_VERSION_3_2_0
|
static String |
DEFAULT_CALLBACK_PACKAGE_NAME
Package to prefix "just" class names with. |
static String |
DEFAULT_DAX_PARSER_CLASS
The default DAXParser classname |
static String |
DEFAULT_PARSER_PACKAGE_NAME
Package to prefix "just" class names with. |
static String |
LABEL_CALLBACK_CLASS
The default callback for label partitioning. |
| Constructor Summary | |
|---|---|
DAXParserFactory()
|
|
| Method Summary | |
|---|---|
static Map |
getDAXMetadata(PegasusBag bag,
String dax)
Returns the metadata stored in the root adag element in the DAX |
static DAXParser |
loadDAXParser(PegasusBag bag,
Callback c,
String daxFile)
Loads the appropriate DAXParser looking at the dax schema that is specified in the DAX file. |
static DAXParser |
loadDAXParser(PegasusBag bag,
String callbackClass,
String daxFile)
Loads the appropriate DAXParser looking at the dax schema that is specified by the user. |
static DAXParser |
loadDAXParser(String classname,
PegasusBag bag,
Callback c)
Loads the appropriate DAXParser looking at the dax schema that is specified by the user. |
static Callback |
loadDAXParserCallback(PegasusProperties properties,
String dax,
String className)
Loads the implementing class corresponding to the type specified by the user. |
static Callback |
loadDAXParserCallback(String type,
PegasusProperties properties,
String dax)
Loads the implementing class corresponding to the type specified by the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String LABEL_CALLBACK_CLASS
public static final String DEFAULT_PARSER_PACKAGE_NAME
public static final String DEFAULT_CALLBACK_PACKAGE_NAME
public static final long DAX_VERSION_3_2_0
public static final String DEFAULT_DAX_PARSER_CLASS
public static final String DAX_PARSER2_CLASS
public static final String DAX_PARSER3_CLASS
| Constructor Detail |
|---|
public DAXParserFactory()
| Method Detail |
|---|
public static DAXParser loadDAXParser(PegasusBag bag,
String callbackClass,
String daxFile)
throws DAXParserFactoryException
bag - bag of Pegasus intialization objectscallbackClass - the dax callback classdax - file the dax file
DAXParserFactoryException - that nests any error that
might occur during the instantiationDEFAULT_CALLBACK_PACKAGE_NAME
public static DAXParser loadDAXParser(PegasusBag bag,
Callback c,
String daxFile)
throws DAXParserFactoryException
bag - bag of Pegasus intialization objectsc - the dax callback.daxFile - the dax file to parser
DAXParserFactoryException - that nests any error that
might occur during the instantiationDEFAULT_CALLBACK_PACKAGE_NAME
public static final DAXParser loadDAXParser(String classname,
PegasusBag bag,
Callback c)
classname - the classname of the parser class that needs to be loadedbag - bag of Pegasus intialization objectsc - the DAX Callback to use
DAXParserFactoryException - that nests any error that
might occur during the instantiationDEFAULT_CALLBACK_PACKAGE_NAME
public static Callback loadDAXParserCallback(String type,
PegasusProperties properties,
String dax)
throws DAXParserFactoryException
properties - the PegasusProperties object containing all
the properties required by Pegasus.type - the type of partitioning the user specified.dax - the path to the DAX file that has to be parsed.
DAXParserFactoryException - that nests any error that
might occur during the instantiationDEFAULT_CALLBACK_PACKAGE_NAME,
PegasusProperties.getPartitionerDAXCallback()
public static Map getDAXMetadata(PegasusBag bag,
String dax)
bag - the bag of initialization objectsdax - the dax file.
public static Callback loadDAXParserCallback(PegasusProperties properties,
String dax,
String className)
throws DAXParserFactoryException
properties - the PegasusProperties object containing all
the properties required by Pegasus.dax - the path to the DAX file that has to be parsed.className - the name of the implementing class.
DAXParserFactoryException - that nests any error that
might occur during the instantiationDEFAULT_CALLBACK_PACKAGE_NAME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||