public abstract class InferentialSchemaBuilder extends Object implements SchemaBuilder
| Constructor and Description |
|---|
InferentialSchemaBuilder(String schemaName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addObservation(String table,
Document document) |
MutableSchema |
build()
Builds the
Schema |
protected MutableTable |
buildTable(InferentialTableBuilder tableBuilder) |
protected abstract String |
determineTable(Document document)
Determines which table a particular document should be mapped to.
|
String |
getSchemaName()
Gets the name of the schema that is built / will be built.
|
InferentialTableBuilder |
getTableBuilder(String table) |
protected void |
offerDocumentSource(DocumentSource documentSource) |
void |
offerSources(DocumentSourceProvider documentSourceProvider)
Offers a
DocumentSourceProvider to the SchemaBuilder. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentConverterpublic InferentialSchemaBuilder(String schemaName)
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 SchemaBuilderprotected void offerDocumentSource(DocumentSource documentSource)
public String getSchemaName()
SchemaBuildergetSchemaName in interface SchemaBuilderprotected abstract String determineTable(Document document)
document - public InferentialTableBuilder getTableBuilder(String table)
public MutableSchema build()
SchemaBuilderSchemabuild in interface SchemaBuilderprotected MutableTable buildTable(InferentialTableBuilder tableBuilder)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.