public class QuerySchemaRegistry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
clearRegistry()
Clear the registry
|
static QuerySchema |
get(java.lang.String schemaName)
Returns the query schema with the given name.
|
static java.util.Set<java.lang.String> |
getNames()
Returns the set of query schema names held in the registry.
|
static QuerySchema |
put(QuerySchema schema)
Adds the given query schema to the registry.
|
public static QuerySchema put(QuerySchema schema)
If there was an existing schema with the same name, it is replaced.
schema
- The query schema to add.null
if there were none.public static QuerySchema get(java.lang.String schemaName)
schemaName
- The query schema name to be returned.null
if no such schema.public static java.util.Set<java.lang.String> getNames()
public static void clearRegistry()