public class HierarchyCSVOutputHandler extends RelationOutputHandler implements IStringSerializable<RelationModel>
RelationOutputHandler.IFilter<T>
Modifier and Type | Field and Description |
---|---|
static char |
DELIMETER_DEFAULT |
static char |
ESCAPE_CHAR_DEFAULT |
static String |
NEW_LINE_SEPARATOR_DEFAULT |
static char |
PATH_SEPARATOR_DEFAULT |
static boolean |
PRINT_HEADER_DEFAULT |
static char |
VALUE_SEPARATOR_DEFAULT |
EMPTY_ROW_FILTER, ID_LABEL_PART_DEFAULT, idLabelPart, includeId, includeRecordLabel
DEFAULT_WRAPPER_ID
Constructor and Description |
---|
HierarchyCSVOutputHandler(boolean allowMultipleValuesPerAttribute,
String[][] entityRelPathList,
boolean includeId,
boolean includeRecordLabel,
RelationOutputHandler.IFilter<String> valFilter,
RelationOutputHandler.IFilter<List<List<String>>> rowFilter) |
HierarchyCSVOutputHandler(boolean allowMultipleValuesPerAttribute,
String[][] entityRelPathList,
boolean includeId,
boolean includeRecordLabel,
RelationOutputHandler.IFilter<String> valFilter,
RelationOutputHandler.IFilter<List<List<String>>> rowFilter,
char pathSeparator,
char valueSeparator,
char escapeChar,
boolean printHeader,
org.apache.commons.csv.CSVFormat csvFileFormat) |
HierarchyCSVOutputHandler(String wrapperId,
boolean allowMultipleValuesPerAttribute,
String[][] entityRelPathList,
boolean includeId,
boolean includeRecordLabel,
RelationOutputHandler.IFilter<String> valFilter,
RelationOutputHandler.IFilter<List<List<String>>> rowFilter) |
HierarchyCSVOutputHandler(String wrapperId,
boolean allowMultipleValuesPerAttribute,
String[][] entityRelPathList,
boolean includeId,
boolean includeRecordLabel,
RelationOutputHandler.IFilter<String> valFilter,
RelationOutputHandler.IFilter<List<List<String>>> rowFilter,
char pathSeparator,
char valueSeparator,
char escapeChar,
boolean printHeader,
org.apache.commons.csv.CSVFormat csvFileFormat) |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
getAccumulativeOutput, processNodeImpl
getAllowMultipleValuesPerAttribute, getAttributesSeenPerTuple, getOuterExceptions, getOuterExceptionStackTracesAsString, getWrapperId, hasOuterException, isEndNodeReceived, logInfo, processNode, receiveOuterException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAccumulativeOutput
public static final char PATH_SEPARATOR_DEFAULT
public static final char VALUE_SEPARATOR_DEFAULT
public static final char ESCAPE_CHAR_DEFAULT
public static final String NEW_LINE_SEPARATOR_DEFAULT
public static final char DELIMETER_DEFAULT
public static final boolean PRINT_HEADER_DEFAULT
public HierarchyCSVOutputHandler(boolean allowMultipleValuesPerAttribute, String[][] entityRelPathList, boolean includeId, boolean includeRecordLabel, RelationOutputHandler.IFilter<String> valFilter, RelationOutputHandler.IFilter<List<List<String>>> rowFilter)
allowMultipleValuesPerAttribute
- true: multiple values are allowed per attributeentityRelPathList
- array of paths of entities to be identified in the extraction treeincludeId
- true: ids corresponding to entities are incorporated into the modelincludeRecordLabel
- true: the name of the record nesting attributes and child entities is included into the path name.valFilter
- a function for filtering values (can be null)recFilter
- a function for filtering records (can be null)public HierarchyCSVOutputHandler(boolean allowMultipleValuesPerAttribute, String[][] entityRelPathList, boolean includeId, boolean includeRecordLabel, RelationOutputHandler.IFilter<String> valFilter, RelationOutputHandler.IFilter<List<List<String>>> rowFilter, char pathSeparator, char valueSeparator, char escapeChar, boolean printHeader, org.apache.commons.csv.CSVFormat csvFileFormat)
allowMultipleValuesPerAttribute
- true: multiple values are allowed per attributeentityRelPathList
- array of paths of entities to be identified in the extraction treeincludeId
- true: ids corresponding to entities are incorporated into the modelincludeRecordLabel
- true: the name of the record nesting attributes and child entities is included into the path name.valFilter
- a function for filtering values (can be null)recFilter
- a function for filtering records (can be null)pathSeparator
- character to join components of the path denoting the entity's attributevalueSeparator
- character to join values of the entity's attributeescapeChar
- escape character used in string join operationprintHeader
- true: print the headercsvFileFormat
- CSV format object (it can be null)public HierarchyCSVOutputHandler(String wrapperId, boolean allowMultipleValuesPerAttribute, String[][] entityRelPathList, boolean includeId, boolean includeRecordLabel, RelationOutputHandler.IFilter<String> valFilter, RelationOutputHandler.IFilter<List<List<String>>> rowFilter)
wrapperId
- allowMultipleValuesPerAttribute
- true: multiple values are allowed per attributeentityRelPathList
- array of paths of entities to be identified in the extraction treeincludeId
- true: ids corresponding to entities are incorporated into the modelincludeRecordLabel
- true: the name of the record nesting attributes and child entities is included into the path name.valFilter
- a function for filtering values (can be null)recFilter
- a function for filtering records (can be null)public HierarchyCSVOutputHandler(String wrapperId, boolean allowMultipleValuesPerAttribute, String[][] entityRelPathList, boolean includeId, boolean includeRecordLabel, RelationOutputHandler.IFilter<String> valFilter, RelationOutputHandler.IFilter<List<List<String>>> rowFilter, char pathSeparator, char valueSeparator, char escapeChar, boolean printHeader, org.apache.commons.csv.CSVFormat csvFileFormat)
wrapperId
- allowMultipleValuesPerAttribute
- true: multiple values are allowed per attributeentityRelPathList
- array of paths of entities to be identified in the extraction treeincludeId
- true: ids corresponding to entities are incorporated into the modelincludeRecordLabel
- true: the name of the record nesting attributes and child entities is included into the path name.valFilter
- a function for filtering values (can be null)recFilter
- a function for filtering records (can be null)pathSeparator
- character to join components of the path denoting the entity's attributevalueSeparator
- character to join values of the entity's attributeescapeChar
- escape character used in string join operationprintHeader
- true: print the headercsvFileFormat
- CSV format object (it can be null)public String asString()
asString
in interface IStringSerializable<RelationModel>
Copyright © 2020 OXPath Team. All rights reserved.