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, wait
getDocumentConverter
public InferentialSchemaBuilder(String schemaName)
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
protected void offerDocumentSource(DocumentSource documentSource)
public String getSchemaName()
SchemaBuilder
getSchemaName
in interface SchemaBuilder
protected abstract String determineTable(Document document)
document
- public InferentialTableBuilder getTableBuilder(String table)
public MutableSchema build()
SchemaBuilder
Schema
build
in interface SchemaBuilder
protected MutableTable buildTable(InferentialTableBuilder tableBuilder)
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.