public class Tail
extends java.lang.Object
| Constructor and Description | 
|---|
Tail()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
main(java.lang.String[] args)  | 
static <T extends TextSerializable>  | 
tail(FileSystem fs,
    Path file,
    int n,
    T stockObject,
    ResultCollector<T> output)
Reads a maximum of n non-empty lines from the end of the given file. 
 | 
static <T extends TextSerializable>  | 
tail(FSDataInputStream in,
    int n,
    T stockObject,
    ResultCollector<T> output)
Reads a maximum of n lines from the stream starting from its current
 position and going backward. 
 | 
public static <T extends TextSerializable> long tail(FSDataInputStream in, int n, T stockObject, ResultCollector<T> output) throws java.io.IOException
in - - An input stream. It'll be scanned from its current position
   backward till position 0n - - Maximum number of lines to returnstockObject - - An object used to deserialize lines read. It can
   be set to null if output is also null. In this
   case, nothing is reported to the output.output - - An output collector used to report lines read.java.io.IOExceptionpublic static <T extends TextSerializable> long tail(FileSystem fs, Path file, int n, T stockObject, ResultCollector<T> output) throws java.io.IOException
fs - file - n - stockObject - output - java.io.IOExceptionpublic static void main(java.lang.String[] args)
                 throws java.io.IOException
java.io.IOException