This project has retired. For details please refer to its Attic page.
ExtractorStats (Apache Crunch 0.7.0 API)

org.apache.crunch.contrib.text
Class ExtractorStats

java.lang.Object
  extended by org.apache.crunch.contrib.text.ExtractorStats

public class ExtractorStats
extends Object

Records the number of kind of errors that an Extractor encountered when parsing input data.


Constructor Summary
ExtractorStats(int errorCount)
           
ExtractorStats(int errorCount, List<Integer> fieldErrors)
           
 
Method Summary
 int getErrorCount()
          The overall number of records that had some kind of parsing error.
 List<Integer> getFieldErrors()
          Returns the number of errors that occurred when parsing the individual fields of a composite record type, like a Pair or TupleN.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractorStats

public ExtractorStats(int errorCount)

ExtractorStats

public ExtractorStats(int errorCount,
                      List<Integer> fieldErrors)
Method Detail

getErrorCount

public int getErrorCount()
The overall number of records that had some kind of parsing error.

Returns:
The overall number of records that had some kind of parsing error

getFieldErrors

public List<Integer> getFieldErrors()
Returns the number of errors that occurred when parsing the individual fields of a composite record type, like a Pair or TupleN.

Returns:
The number of errors that occurred when parsing the individual fields of a composite record type


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.