public abstract class SimpleAbstractHdfsItemWriter<T>
extends java.lang.Object
implements org.springframework.batch.item.ItemWriter<T>
Constructor and Description |
---|
SimpleAbstractHdfsItemWriter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseFilename() |
java.lang.String |
getBasePath() |
long |
getBytesWritten() |
long |
getCounter() |
protected int |
getCounterFromName(java.lang.String shortName) |
java.lang.String |
getFileName() |
java.lang.String |
getFileSuffix() |
abstract org.apache.hadoop.fs.FileSystem |
getFileSystem() |
long |
getRolloverThresholdInBytes() |
void |
incrementBytesWritten(long bytesWritten) |
void |
incrementCounter() |
protected void |
initializeCounterIfNecessary() |
void |
resetBytesWritten() |
void |
setBaseFilename(java.lang.String baseFilename) |
void |
setBasePath(java.lang.String basePath) |
void |
setCounter(long value) |
void |
setFileSuffix(java.lang.String fileSuffix) |
void |
setRolloverThresholdInBytes(long rolloverThresholdInBytes) |
abstract void |
write(java.util.List<? extends T> items) |
public abstract void write(java.util.List<? extends T> items) throws java.lang.Exception
write
in interface org.springframework.batch.item.ItemWriter<T>
java.lang.Exception
public abstract org.apache.hadoop.fs.FileSystem getFileSystem()
protected void initializeCounterIfNecessary()
protected int getCounterFromName(java.lang.String shortName)
public long getRolloverThresholdInBytes()
public void setRolloverThresholdInBytes(long rolloverThresholdInBytes)
public java.lang.String getFileSuffix()
public void setFileSuffix(java.lang.String fileSuffix)
public java.lang.String getBaseFilename()
public void setBaseFilename(java.lang.String baseFilename)
public java.lang.String getBasePath()
public void setBasePath(java.lang.String basePath)
public long getCounter()
public void setCounter(long value)
public void incrementCounter()
public void incrementBytesWritten(long bytesWritten)
public void resetBytesWritten()
public long getBytesWritten()
public java.lang.String getFileName()