public class TextFileReader extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
TextFileReader.Offset  | 
| Modifier and Type | Field and Description | 
|---|---|
static String | 
BUFFER_SIZE  | 
static String | 
CHARSET  | 
static String[] | 
defaultFields  | 
| Constructor and Description | 
|---|
TextFileReader(org.apache.hadoop.fs.FileSystem fs,
              org.apache.hadoop.fs.Path file,
              Map<String,Object> conf)  | 
TextFileReader(org.apache.hadoop.fs.FileSystem fs,
              org.apache.hadoop.fs.Path file,
              Map<String,Object> conf,
              String startOffset)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
boolean | 
equals(Object o)  | 
TextFileReader.Offset | 
getFileOffset()  | 
org.apache.hadoop.fs.Path | 
getFilePath()  | 
int | 
hashCode()  | 
List<Object> | 
next()  | 
public static final String[] defaultFields
public static final String CHARSET
public static final String BUFFER_SIZE
public TextFileReader(org.apache.hadoop.fs.FileSystem fs,
                      org.apache.hadoop.fs.Path file,
                      Map<String,Object> conf)
               throws IOException
IOExceptionpublic TextFileReader(org.apache.hadoop.fs.FileSystem fs,
                      org.apache.hadoop.fs.Path file,
                      Map<String,Object> conf,
                      String startOffset)
               throws IOException
IOExceptionpublic TextFileReader.Offset getFileOffset()
public List<Object> next() throws IOException, ParseException
IOExceptionParseExceptionpublic void close()
public org.apache.hadoop.fs.Path getFilePath()
Copyright © 2020 The Apache Software Foundation. All rights reserved.