public class TableOutput extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger
The constant logger.
|
List<Map<CharSequence,Object>> |
rows
The Rows.
|
Map<CharSequence,Class<?>> |
schema
The Schema.
|
Constructor and Description |
---|
TableOutput() |
Modifier and Type | Method and Description |
---|---|
TableOutput |
calcNumberStats()
Calc number stats table output.
|
void |
clear()
Clear.
|
static TableOutput |
create(Map<CharSequence,Object>... rows)
Create table output.
|
void |
putRow(Map<CharSequence,Object> properties)
Put row.
|
CharSequence |
toCSV(boolean sortCols)
To csv string.
|
String |
toHtmlTable()
To html table string.
|
String |
toHtmlTable(boolean sortCols)
To html table string.
|
String |
toMarkdownTable()
To text table string.
|
void |
writeProjectorData(File path,
URL baseUrl)
Write projector data.
|
public static final org.slf4j.Logger logger
public final List<Map<CharSequence,Object>> rows
public final Map<CharSequence,Class<?>> schema
@Nonnull public static TableOutput create(@Nonnull Map<CharSequence,Object>... rows)
rows
- the rows@Nonnull public TableOutput calcNumberStats()
public void clear()
public void putRow(@Nonnull Map<CharSequence,Object> properties)
properties
- the propertiespublic CharSequence toCSV(boolean sortCols)
sortCols
- the sort colspublic String toHtmlTable()
public String toHtmlTable(boolean sortCols)
sortCols
- the sort colspublic String toMarkdownTable()
public void writeProjectorData(@Nonnull File path, URL baseUrl) throws IOException
path
- the pathbaseUrl
- the base urlIOException
- the io exceptionCopyright © 2019 SimiaCryptus Software. All rights reserved.