public class DelimitedTextFileReader extends Object implements DataStoreReader<List<String>>
DelimitedTextFileReader is a DataStoreReader implementation
 able to read Strings from a raw hdfs files as delimited fields.| Modifier and Type | Field and Description | 
|---|---|
| static byte[] | CSVCSV Mode | 
| static byte[] | TABTAB Mode | 
| Constructor and Description | 
|---|
| DelimitedTextFileReader(Configuration configuration,
                       Path basePath,
                       CodecInfo codec)Instantiates a new delimited text file reader. | 
| DelimitedTextFileReader(Configuration configuration,
                       Path basePath,
                       CodecInfo codec,
                       byte[] fieldDelimiter)Instantiates a new delimited text file reader. | 
| DelimitedTextFileReader(Configuration configuration,
                       Path basePath,
                       CodecInfo codec,
                       Split inputSplit,
                       byte[] fieldDelimiter,
                       byte[] textDelimiter)Instantiates a new delimited text file reader. | 
public static final byte[] CSV
public static final byte[] TAB
public DelimitedTextFileReader(Configuration configuration, Path basePath, CodecInfo codec)
configuration - the configurationbasePath - the base pathcodec - the codecpublic DelimitedTextFileReader(Configuration configuration, Path basePath, CodecInfo codec, byte[] fieldDelimiter)
configuration - the configurationbasePath - the base pathcodec - the codecfieldDelimiter - the field delimiterpublic DelimitedTextFileReader(Configuration configuration, Path basePath, CodecInfo codec, Split inputSplit, byte[] fieldDelimiter, byte[] textDelimiter)
configuration - the configurationbasePath - the base pathcodec - the codecfieldDelimiter - the field delimitertextDelimiter - the text delimiterpublic List<String> read() throws IOException
DataReaderread in interface DataReader<List<String>>nullIOException - if an I/O error occurspublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOException