Package org.jpmml.evaluator
Class Table
- java.lang.Object
-
- org.jpmml.evaluator.Table
-
public class Table extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTable.Row
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddColumn(String column)voidapply(String column, Function<?,?> function)voidapply(Function<?,?> function)voidcanonicalize()voidclearExceptions()Table.RowcreateReaderRow(int origin)Creates a row that can advance till the end of the table, but not beyond it.Table.RowcreateReaderRow(int origin, int fence)Creates a row that can advance within the specified range.Table.RowcreateWriterRow(int origin)Creates a row that can advance indefinitely.List<String>getColumns()ExceptiongetException(int index)List<Exception>getExceptions()intgetInitialCapacity()intgetNumberOfColumns()intgetNumberOfRows()Map<String,List<?>>getValues()List<?>getValues(String column)booleanhasExceptions()Stream<Table.Row>parallelStream()booleanremoveColumn(String column)voidsetException(int index, Exception exception)voidsetValues(String column, List<?> values)TableSpliteratorspliterator()Stream<Table.Row>stream()
-
-
-
Method Detail
-
getNumberOfRows
public int getNumberOfRows()
-
getNumberOfColumns
public int getNumberOfColumns()
-
canonicalize
public void canonicalize()
-
addColumn
public boolean addColumn(String column)
-
removeColumn
public boolean removeColumn(String column)
-
createReaderRow
public Table.Row createReaderRow(int origin)
Creates a row that can advance till the end of the table, but not beyond it.
- See Also:
Table.Row.canAdvance()
-
createReaderRow
public Table.Row createReaderRow(int origin, int fence)
Creates a row that can advance within the specified range.
- Parameters:
origin- The start line number.fence- The end line number, exclusive.- See Also:
Table.Row.canAdvance()
-
createWriterRow
public Table.Row createWriterRow(int origin)
Creates a row that can advance indefinitely.
- See Also:
Table.Row.canAdvance()
-
spliterator
@IgnoreJRERequirement public TableSpliterator spliterator()
-
hasExceptions
public boolean hasExceptions()
-
getException
public Exception getException(int index)
-
setException
public void setException(int index, Exception exception)
-
clearExceptions
public void clearExceptions()
-
apply
@IgnoreJRERequirement public void apply(Function<?,?> function)
-
getInitialCapacity
public int getInitialCapacity()
-
-