public class SimpleTableDefSchemaBuilder extends Object implements SchemaBuilder
SchemaBuilder that builds a schema according to instructions in the
form of SimpleTableDef objects.| Constructor and Description |
|---|
SimpleTableDefSchemaBuilder(String schemaName,
SimpleTableDef... simpleTableDefs) |
| Modifier and Type | Method and Description |
|---|---|
MutableSchema |
build()
Builds the
Schema |
DocumentConverter |
getDocumentConverter(Table table)
Gets a
DocumentConverter for a table in the produced schema |
String |
getSchemaName()
Gets the name of the schema that is built / will be built.
|
void |
offerSources(DocumentSourceProvider documentSource)
Offers a
DocumentSourceProvider to the SchemaBuilder. |
public SimpleTableDefSchemaBuilder(String schemaName, SimpleTableDef... simpleTableDefs)
public void offerSources(DocumentSourceProvider documentSource)
SchemaBuilderDocumentSourceProvider to the SchemaBuilder. The
SchemaBuilder may consume the sources to build/detect a schema
based on the observed documents in the sources. It may also choose to
ignore the source, if the it does not need it.offerSources in interface SchemaBuilderpublic String getSchemaName()
SchemaBuildergetSchemaName in interface SchemaBuilderpublic MutableSchema build()
SchemaBuilderSchemabuild in interface SchemaBuilderpublic DocumentConverter getDocumentConverter(Table table)
SchemaBuilderDocumentConverter for a table in the produced schemagetDocumentConverter in interface SchemaBuilderCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.