Package org.apache.druid.catalog.model
Class SchemaRegistryImpl
- java.lang.Object
-
- org.apache.druid.catalog.model.SchemaRegistryImpl
-
- All Implemented Interfaces:
SchemaRegistry
public class SchemaRegistryImpl extends Object implements SchemaRegistry
Hard-coded schema registry that knows about the well-known, and a few obscure, Druid schemas. Does not allow for user-defined schemas, which the rest of Druid would not be able to support.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchemaRegistryImpl.SchemaDefnImpl-
Nested classes/interfaces inherited from interface org.apache.druid.catalog.model.SchemaRegistry
SchemaRegistry.SchemaSpec
-
-
Constructor Summary
Constructors Constructor Description SchemaRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>names()SchemaRegistry.SchemaSpecschema(String name)List<SchemaRegistry.SchemaSpec>schemas()
-
-
-
Method Detail
-
schema
public SchemaRegistry.SchemaSpec schema(String name)
- Specified by:
schemain interfaceSchemaRegistry
-
names
public Set<String> names()
- Specified by:
namesin interfaceSchemaRegistry
-
schemas
public List<SchemaRegistry.SchemaSpec> schemas()
- Specified by:
schemasin interfaceSchemaRegistry
-
-