public class RecordCount
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
RecordCount.Map  | 
static class  | 
RecordCount.Reduce  | 
| Constructor and Description | 
|---|
RecordCount()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
main(java.lang.String[] args)  | 
static <T> long | 
recordCountApprox(FileSystem fs,
                 Path file)
Counts the approximate number of lines in a file by getting an approximate
 average line length 
 | 
static long | 
recordCountMapReduce(FileSystem fs,
                    Path inFile)
Counts the exact number of lines in a file by issuing a MapReduce job
 that does the thing 
 | 
public static long recordCountMapReduce(FileSystem fs,
                        Path inFile)
                                 throws java.io.IOException
conf - fs - inFile - java.io.IOExceptionpublic static <T> long recordCountApprox(FileSystem fs,
                         Path file)
                              throws java.io.IOException
fs - file - java.io.IOExceptionpublic static void main(java.lang.String[] args)
                 throws java.io.IOException
args - java.io.IOException