public class LoadQuerySchemas
extends java.lang.Object
Schemas should be specified as follows; all items are treated in a case insensitive manner:
<schema>
<schemaName> name of the schema </schemaName>
<dataSchemaName> name of the data schema over which this query is run </dataSchemaName>
<selectorName> name of the element in the data schema that will be the selector </selectorName>
<elements>
<name> element name of element in the data schema to include in the query response </name>
</elements>
<filter> (optional) name of the filter class to use to filter the data </filter>
<filterNames> (optional)
<name> element name of element in the data schema to apply pre-processing filters </name>
</filterNames>
</schema>
TODO: Allow the schema to specify how many array elements to return per element, if the element is an array type
Constructor and Description |
---|
LoadQuerySchemas() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsSchema(java.lang.String schemaNameIn)
Checks whether or not (true/false) the given schema is loaded
|
static QuerySchema |
getSchema(java.lang.String schemaName) |
static java.util.HashMap<java.lang.String,QuerySchema> |
getSchemaMap() |
static java.util.Set<java.lang.String> |
getSchemaNames() |
static java.lang.String |
getSchemasString() |
static void |
initialize() |
static void |
initialize(boolean hdfs,
org.apache.hadoop.fs.FileSystem fs) |
static void |
printSchemas() |
public static void initialize() throws java.lang.Exception
java.lang.Exception
public static void initialize(boolean hdfs, org.apache.hadoop.fs.FileSystem fs) throws java.lang.Exception
java.lang.Exception
public static java.util.HashMap<java.lang.String,QuerySchema> getSchemaMap()
public static java.util.Set<java.lang.String> getSchemaNames()
public static QuerySchema getSchema(java.lang.String schemaName)
public static boolean containsSchema(java.lang.String schemaNameIn)
public static void printSchemas()
public static java.lang.String getSchemasString()