Package org.carrot2.util
Class TabularOutput.Builder
java.lang.Object
org.carrot2.util.TabularOutput.Builder
- Enclosing class:
- TabularOutput
public static class TabularOutput.Builder extends Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TabularOutput.Builder
addColumn(String name)
TabularOutput.Builder
addColumn(String name, Consumer<TabularOutput.ColumnSpec> columnConfig)
Adds a column to the tabular's layout.TabularOutput.Builder
addColumns(String... names)
TabularOutput
build()
TabularOutput.Builder
columnSeparator(String separator)
TabularOutput.Builder
flushEvery(int n)
Flush automatically every n-lines.TabularOutput.Builder
noAutoFlush()
Don't flush lines automatically.TabularOutput.Builder
outputHeaders(boolean outputHeader)
Emit or skip the header.
-
Constructor Details
-
Method Details
-
outputHeaders
Emit or skip the header. -
flushEvery
Flush automatically every n-lines.- See Also:
TabularOutput.flush()
-
noAutoFlush
Don't flush lines automatically. -
columnSeparator
-
addColumn
public TabularOutput.Builder addColumn(String name, Consumer<TabularOutput.ColumnSpec> columnConfig)Adds a column to the tabular's layout. -
addColumn
-
build
-
addColumns
-