Package org.apache.unomi.common
Class DataTable
- java.lang.Object
-
- org.apache.unomi.common.DataTable
-
public class DataTable extends Object
An in memory table structure for storing data and performing operations such as sorting it, or generating JSON or CSV outputs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataTable.EmptyCell
class
DataTable.Row
static class
DataTable.SortCriteria
static class
DataTable.SortOrder
-
Field Summary
Fields Modifier and Type Field Description static DataTable.EmptyCell
EMPTY_CELL
-
Constructor Summary
Constructors Constructor Description DataTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRow(Comparable... rowData)
int
getMaxColumns()
List<DataTable.Row>
getRows()
void
sort(DataTable.SortCriteria... sortCriterias)
String
toCSV(String... headers)
String
toString()
-
-
-
Field Detail
-
EMPTY_CELL
public static final DataTable.EmptyCell EMPTY_CELL
-
-
Method Detail
-
getRows
public List<DataTable.Row> getRows()
-
addRow
public void addRow(Comparable... rowData)
-
getMaxColumns
public int getMaxColumns()
-
sort
public void sort(DataTable.SortCriteria... sortCriterias)
-
-