public abstract class AbstractHdfsWriter extends java.lang.Object implements HdfsWriter
Constructor and Description |
---|
AbstractHdfsWriter() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, write
public abstract org.apache.hadoop.fs.FileSystem getFileSystem()
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 getRolloverThresholdInBytes()
public void setRolloverThresholdInBytes(long rolloverThresholdInBytes)
protected void initializeCounterIfNecessary()
protected int getCounterFromName(java.lang.String shortName)
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()