| Constructor and Description |
|---|
CSVParser(com.google.common.base.Optional<String> listDelimiter,
boolean hasHeaderRow,
int maxSkipHeaderRows) |
CSVParser(com.google.common.base.Optional<String> listDelimiter,
Iterable<String> fieldNames,
boolean hasHeaderRow,
int maxSkipHeaderRows) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFieldNames()
Returns the fieldNames that we expect to see in parsed Maps, if known, or null otherwise.
|
String |
getListDelimiter() |
Map<String,Object> |
parse(String input)
Parse a String into a Map.
|
void |
setFieldNames(Iterable<String> fieldNames)
Set the fieldNames that you expect to see in parsed Maps.
|
void |
setFieldNames(String header) |
void |
startFileFromBeginning()
This method may or may not get called at the start of reading of every file depending on the type of IndexTasks.
|
public CSVParser(com.google.common.base.Optional<String> listDelimiter, boolean hasHeaderRow, int maxSkipHeaderRows)
public String getListDelimiter()
public void startFileFromBeginning()
ParserstartFileFromBeginning in interface Parser<String,Object>public List<String> getFieldNames()
ParsergetFieldNames in interface Parser<String,Object>public void setFieldNames(Iterable<String> fieldNames)
ParsersetFieldNames in interface Parser<String,Object>public void setFieldNames(String header)
Copyright © 2011–2017. All rights reserved.