public class InferentialTableBuilder extends Object implements TableBuilder
TableBuilder
thatConstructor and Description |
---|
InferentialTableBuilder(String tableName) |
Modifier and Type | Method and Description |
---|---|
void |
addObservation(Document document) |
MutableTable |
buildTable()
Builds the
Table |
InferentialColumnBuilder |
getColumnBuilder(String columnName)
Gets the
ColumnBuilder of a named Column in the table. |
int |
getObservationCount()
Gets the number of observations that this table builder is basing it's
inference on.
|
void |
offerSource(DocumentSource documentSource)
Offers a
DocumentSource to the TableBuilder . |
public InferentialTableBuilder(String tableName)
public void addObservation(Document document)
public int getObservationCount()
public MutableTable buildTable()
TableBuilder
Table
buildTable
in interface TableBuilder
public InferentialColumnBuilder getColumnBuilder(String columnName)
TableBuilder
ColumnBuilder
of a named Column
in the table.getColumnBuilder
in interface TableBuilder
public void offerSource(DocumentSource documentSource)
TableBuilder
DocumentSource
to the TableBuilder
. The
TableBuilder
may consume the source to build/detect a table based
on the observed documents in the source. It may also choose to ignore the
source, if the it does not need it.offerSource
in interface TableBuilder
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.