public class SingleTableInferentialSchemaBuilder extends InferentialSchemaBuilder
InferentialSchemaBuilder
that produces a single table.Constructor and Description |
---|
SingleTableInferentialSchemaBuilder(Resource resource) |
SingleTableInferentialSchemaBuilder(String schemaName,
String tableName) |
Modifier and Type | Method and Description |
---|---|
protected String |
determineTable(Document document)
Determines which table a particular document should be mapped to.
|
DocumentConverter |
getDocumentConverter(Table table)
Gets a
DocumentConverter for a table in the produced schema |
void |
offerSources(DocumentSourceProvider documentSourceProvider)
Offers a
DocumentSourceProvider to the SchemaBuilder . |
addObservation, build, buildTable, getSchemaName, getTableBuilder, offerDocumentSource
public SingleTableInferentialSchemaBuilder(Resource resource)
public void offerSources(DocumentSourceProvider documentSourceProvider)
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
offerSources
in class InferentialSchemaBuilder
protected String determineTable(Document document)
InferentialSchemaBuilder
determineTable
in class InferentialSchemaBuilder
public DocumentConverter getDocumentConverter(Table table)
SchemaBuilder
DocumentConverter
for a table in the produced schemaCopyright © 2007–2014 The Apache Software Foundation. All rights reserved.