This project has retired. For details please refer to its
Attic page.
ExtractorStats (Apache Crunch 0.8.0 API)
org.apache.crunch.contrib.text
Class ExtractorStats
java.lang.Object
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.
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 . |
ExtractorStats
public ExtractorStats(int errorCount)
ExtractorStats
public ExtractorStats(int errorCount,
List<Integer> fieldErrors)
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.