public class HdfsTextFileWriter extends AbstractHdfsWriter implements HdfsWriter
Constructor and Description |
---|
HdfsTextFileWriter(org.apache.hadoop.fs.FileSystem fileSystem) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
copy(byte[] in,
org.apache.hadoop.fs.FSDataOutputStream out)
Simple not optimized copy
|
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
void |
write(org.springframework.messaging.Message<?> message) |
getBaseFilename, getBasePath, getBytesWritten, getCounter, getCounterFromName, getFileName, getFileSuffix, getRolloverThresholdInBytes, incrementBytesWritten, incrementCounter, initializeCounterIfNecessary, resetBytesWritten, setBaseFilename, setBasePath, setCounter, setFileSuffix, setRolloverThresholdInBytes
public HdfsTextFileWriter(org.apache.hadoop.fs.FileSystem fileSystem)
public void write(org.springframework.messaging.Message<?> message) throws java.io.IOException
write
in interface HdfsWriter
java.io.IOException
public org.apache.hadoop.fs.FileSystem getFileSystem()
getFileSystem
in class AbstractHdfsWriter
public void copy(byte[] in, org.apache.hadoop.fs.FSDataOutputStream out) throws java.io.IOException
java.io.IOException
public void close()
close
in interface HdfsWriter