public class SimpleHdfsTextItemWriter<T> extends SimpleAbstractHdfsItemWriter<T> implements org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
SimpleHdfsTextItemWriter(org.apache.hadoop.fs.FileSystem fileSystem) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
close() |
void |
copy(byte[] in,
org.apache.hadoop.fs.FSDataOutputStream out)
Simple not optimized copy
|
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
void |
setLineAggregator(org.springframework.batch.item.file.transform.LineAggregator<T> lineAggregator)
Public setter for the
LineAggregator . |
void |
write(java.util.List<? extends T> items) |
getBaseFilename, getBasePath, getBytesWritten, getCounter, getCounterFromName, getFileName, getFileSuffix, getRolloverThresholdInBytes, incrementBytesWritten, incrementCounter, initializeCounterIfNecessary, resetBytesWritten, setBaseFilename, setBasePath, setCounter, setFileSuffix, setRolloverThresholdInBytes
public SimpleHdfsTextItemWriter(org.apache.hadoop.fs.FileSystem fileSystem)
public void write(java.util.List<? extends T> items) throws java.lang.Exception
write
in interface org.springframework.batch.item.ItemWriter<T>
write
in class SimpleAbstractHdfsItemWriter<T>
java.lang.Exception
public void copy(byte[] in, org.apache.hadoop.fs.FSDataOutputStream out) throws java.io.IOException
java.io.IOException
public org.apache.hadoop.fs.FileSystem getFileSystem()
getFileSystem
in class SimpleAbstractHdfsItemWriter<T>
public void close()
public void setLineAggregator(org.springframework.batch.item.file.transform.LineAggregator<T> lineAggregator)
LineAggregator
. This will be used to
translate the item into a line for output.lineAggregator
- the LineAggregator
to setpublic void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception