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

public class CustomPatternCsv.CustomMatcherCsv2 extends CustomMatcherBase
  • Field Details

    • fieldSeparatorAndNewlineMatcher

      protected CustomPatternReplay.CustomMatcherReplay fieldSeparatorAndNewlineMatcher
      Matcher to move to the next field separator or newline
    • quoteErrorCount

      protected int quoteErrorCount
      Number of unexpected quotations
    • lastMatchedFields

      protected List<CharSequence> lastMatchedFields
    • currentFieldContentStart

      protected int currentFieldContentStart
      Start of field content (excluding a possible leading a quote)
    • isInQuotedField

      protected Boolean isInQuotedField
    • currentLineCount

      protected int currentLineCount
    • lastRowEnd

      protected int lastRowEnd
    • lastRowStart

      protected int lastRowStart
  • Constructor Details

    • CustomMatcherCsv2

      public CustomMatcherCsv2(CharSequence charSequence)
  • Method Details

    • getLastMatchedFields

      public List<CharSequence> 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

      public String group()
    • start

      public int start(String name)
      Specified by:
      start in interface CustomMatcher
      Overrides:
      start in class CustomMatcherBase
    • end

      public int end(String name)
      Specified by:
      end in interface CustomMatcher
      Overrides:
      end in class CustomMatcherBase