Class CustomPatternCsv.CustomMatcherCsv2
java.lang.Object
net.sansa_stack.hadoop.core.pattern.CustomMatcherBase
net.sansa_stack.hadoop.core.pattern.CustomPatternCsv.CustomMatcherCsv2
- All Implemented Interfaces:
MatchResult,CustomMatcher
- Enclosing class:
- CustomPatternCsv
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intStart of field content (excluding a possible leading a quote)protected intprotected CustomPatternReplay.CustomMatcherReplayMatcher to move to the next field separator or newlineprotected Booleanprotected List<CharSequence>protected intprotected intprotected intNumber of unexpected quotationsFields inherited from class net.sansa_stack.hadoop.core.pattern.CustomMatcherBase
charSequence, pos, regionEnd, regionStart -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.sansa_stack.hadoop.core.pattern.CustomMatcherBase
end, group, groupCount, region, start
-
Field Details
-
fieldSeparatorAndNewlineMatcher
Matcher to move to the next field separator or newline -
quoteErrorCount
protected int quoteErrorCountNumber of unexpected quotations -
lastMatchedFields
-
currentFieldContentStart
protected int currentFieldContentStartStart of field content (excluding a possible leading a quote) -
isInQuotedField
-
currentLineCount
protected int currentLineCount -
lastRowEnd
protected int lastRowEnd -
lastRowStart
protected int lastRowStart
-
-
Constructor Details
-
CustomMatcherCsv2
-
-
Method Details
-
getLastMatchedFields
-
getQuoteErrorCount
public int getQuoteErrorCount() -
find
public boolean find() -
findNext
public boolean findNext() -
setInQuotedField
public void setInQuotedField(boolean onOrOff) -
IsInQuotedField
public boolean IsInQuotedField() -
reset
public void reset() -
start
public int start() -
end
public int end() -
group
-
start
- Specified by:
startin interfaceCustomMatcher- Overrides:
startin classCustomMatcherBase
-
end
- Specified by:
endin interfaceCustomMatcher- Overrides:
endin classCustomMatcherBase
-