|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.store.output.DelimitedTextFileWriter
public class DelimitedTextFileWriter
A DelimitedTextFileWriter is a DataStoreWriter implementation
able to write Strings into raw hdfs files as delimited fields.
| Field Summary | |
|---|---|
static byte[] |
CSV
CSV Mode |
static byte[] |
TAB
TAB Mode |
| Constructor Summary | |
|---|---|
DelimitedTextFileWriter(Configuration configuration,
Path basePath,
CodecInfo codec)
Instantiates a new delimited text file writer. |
|
DelimitedTextFileWriter(Configuration configuration,
Path basePath,
CodecInfo codec,
byte[] fieldDelimiter)
Instantiates a new delimited text file writer. |
|
DelimitedTextFileWriter(Configuration configuration,
Path basePath,
CodecInfo codec,
byte[] fieldDelimiter,
byte[] textDelimiter)
Instantiates a new delimited text file writer. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
write(List<String> entity)
Write an entity. |
| 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 DelimitedTextFileWriter(Configuration configuration,
Path basePath,
CodecInfo codec)
configuration - the configurationbasePath - the base pathcodec - the codec
public DelimitedTextFileWriter(Configuration configuration,
Path basePath,
CodecInfo codec,
byte[] fieldDelimiter)
configuration - the configurationbasePath - the base pathcodec - the codecfieldDelimiter - the field delimiter
public DelimitedTextFileWriter(Configuration configuration,
Path basePath,
CodecInfo codec,
byte[] fieldDelimiter,
byte[] textDelimiter)
configuration - the configurationbasePath - the base pathcodec - the codecfieldDelimiter - the field delimitertextDelimiter - the text delimiter| Method Detail |
|---|
public void write(List<String> entity)
throws IOException
DataWriter
write in interface DataWriter<List<String>>IOException - if an I/O error occurs
public void flush()
throws IOException
flush in interface FlushableIOException
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 | ||||||||