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, offerDocumentSourcepublic SingleTableInferentialSchemaBuilder(Resource resource)
public void offerSources(DocumentSourceProvider documentSourceProvider)
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 SchemaBuilderofferSources in class InferentialSchemaBuilderprotected String determineTable(Document document)
InferentialSchemaBuilderdetermineTable in class InferentialSchemaBuilderpublic DocumentConverter getDocumentConverter(Table table)
SchemaBuilderDocumentConverter for a table in the produced schemaCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.