Modifier and Type | Class and Description |
---|---|
static class |
AbstractFlatTextFormatParser.FlatTextFormat |
Constructor and Description |
---|
AbstractFlatTextFormatParser(String listDelimiter,
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() |
protected abstract List<String> |
parseLine(String input) |
Map<String,Object> |
parseToMap(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 void startFileFromBeginning()
Parser
startFileFromBeginning
in interface Parser<String,Object>
public String getListDelimiter()
public List<String> getFieldNames()
Parser
getFieldNames
in interface Parser<String,Object>
public void setFieldNames(Iterable<String> fieldNames)
Parser
setFieldNames
in interface Parser<String,Object>
public void setFieldNames(String header)
public Map<String,Object> parseToMap(String input)
Parser
parseToMap
in interface Parser<String,Object>
protected abstract List<String> parseLine(String input) throws IOException
IOException
Copyright © 2011–2018. All rights reserved.