public class CouchDbSimpleTableDefSchemaBuilder extends SimpleTableDefSchemaBuilder
Constructor and Description |
---|
CouchDbSimpleTableDefSchemaBuilder(SimpleTableDef[] tableDefs) |
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 |
void |
offerSources(DocumentSourceProvider documentSourceProvider)
Offers a
DocumentSourceProvider to the SchemaBuilder . |
getSchemaName
public CouchDbSimpleTableDefSchemaBuilder(SimpleTableDef[] tableDefs)
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 SimpleTableDefSchemaBuilder
public MutableSchema build()
SchemaBuilder
Schema
build
in interface SchemaBuilder
build
in class SimpleTableDefSchemaBuilder
public DocumentConverter getDocumentConverter(Table table)
SchemaBuilder
DocumentConverter
for a table in the produced schemagetDocumentConverter
in interface SchemaBuilder
getDocumentConverter
in class SimpleTableDefSchemaBuilder
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.