public class DataSchemaRegistry
extends java.lang.Object
DataSchema
,
DataSchemaLoader
Modifier and Type | Method and Description |
---|---|
static void |
clearRegistry()
Clear the registry
|
static DataSchema |
get(java.lang.String schemaName)
Returns the data schema with the given name.
|
static java.util.Set<java.lang.String> |
getNames()
Returns the set of data schema names held in the registry.
|
static DataSchema |
put(DataSchema schema)
Adds the given data schema to the registry.
|
public static DataSchema put(DataSchema schema)
schema
- The data schema to add.null
if there were none.public static DataSchema get(java.lang.String schemaName)
schemaName
- The data schema name to be returned.null
if no such schema.public static java.util.Set<java.lang.String> getNames()
public static void clearRegistry()