public abstract class AbstractHdfsItemWriter<T>
extends org.springframework.batch.item.support.AbstractItemStreamItemWriter<T>
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
AbstractHdfsItemWriter() |
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() |
protected void |
reset() |
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) |
close, getExecutionContextKey, open, setExecutionContextName, setName, update
public abstract void write(java.util.List<? extends T> items) throws java.lang.Exception
java.lang.Exception
public abstract org.apache.hadoop.fs.FileSystem getFileSystem()
protected void initializeCounterIfNecessary() throws java.io.IOException
java.io.IOException
protected void reset()
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()