public class RelationModel extends Object
Constructor and Description |
---|
RelationModel(List<List<String>> headers,
boolean withId,
List<Integer> entityIndexes) |
Modifier and Type | Method and Description |
---|---|
void |
addRow(List<List<String>> row) |
List<String> |
flatternColumnNamePaths(char pathSeparator,
char escapeChar) |
List<List<String>> |
flatternRows(char valueSeparator,
char escapeChar)
Flatten the rows, converting them into the list of atomic values.
|
List<List<String>> |
getColumnNamePaths()
Get list of headers, each header is represented as a list of name components.
|
List<Integer> |
getEntityIndexes() |
List<List<String>> |
getLastRow()
Get last received record
|
List<Integer> |
getLastRowIds()
Get last received record's IDs
|
List<List<List<String>>> |
getRows() |
boolean |
isEmpty(int rowIndex) |
boolean |
isWithId() |
String |
toString() |
public boolean isWithId()
public List<List<String>> getColumnNamePaths()
public boolean isEmpty(int rowIndex)
public List<String> flatternColumnNamePaths(char pathSeparator, char escapeChar)
pathSeparator
- character to join components of the path denoting the entity's attributeescapeChar
- escape character used in string join operationpublic List<List<String>> flatternRows(char valueSeparator, char escapeChar)
valueSeparator
- character to join values of the entity's attributeescapeChar
- escape character used in string join operationCopyright © 2020 OXPath Team. All rights reserved.