|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.store.input.DelimitedTextFileReader
public class DelimitedTextFileReader
A DelimitedTextFileReader is a DataStoreReader implementation
able to read Strings from a raw hdfs files as delimited fields.
| Field Summary | |
|---|---|
static byte[] |
CSV
CSV Mode |
static byte[] |
TAB
TAB Mode |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
close()
|
List<String> |
read()
Read next entity from a reader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte[] CSV
public static final byte[] TAB
| Constructor Detail |
|---|
public DelimitedTextFileReader(Configuration configuration,
Path basePath,
CodecInfo codec)
configuration - the configurationbasePath - the base pathcodec - the codec
public DelimitedTextFileReader(Configuration configuration,
Path basePath,
CodecInfo codec,
byte[] fieldDelimiter)
configuration - the configurationbasePath - the base pathcodec - the codecfieldDelimiter - the field delimiter
public 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 delimiter| Method Detail |
|---|
public List<String> read()
throws IOException
DataReader
read in interface DataReader<List<String>>null
IOException - if an I/O error occurs
public void close()
throws IOException
close in interface CloseableIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||