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)
SchemaBuilder
DocumentSourceProvider
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 SchemaBuilder
public String getSchemaName()
SchemaBuilder
getSchemaName
in interface SchemaBuilder
public MutableSchema build()
SchemaBuilder
Schema
build
in interface SchemaBuilder
public DocumentConverter getDocumentConverter(Table table)
SchemaBuilder
DocumentConverter
for a table in the produced schemagetDocumentConverter
in interface SchemaBuilder
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.