public class HdfsTextFileWriterFactory extends java.lang.Object implements HdfsWriterFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BASE_FILENAME |
static java.lang.String |
DEFAULT_BASE_PATH |
static java.lang.String |
DEFAULT_FILE_SUFFIX |
static long |
DEFAULT_ROLLOVER_THRESHOLD_IN_BYTES |
Constructor and Description |
---|
HdfsTextFileWriterFactory(org.apache.hadoop.fs.FileSystem fileSystem) |
Modifier and Type | Method and Description |
---|---|
HdfsWriter |
createWriter() |
java.lang.String |
getBaseFilename() |
java.lang.String |
getBasePath() |
java.lang.String |
getFileSuffix() |
long |
getRolloverThresholdInBytes() |
void |
setBaseFilename(java.lang.String baseFilename) |
void |
setBasePath(java.lang.String basePath) |
void |
setFileSuffix(java.lang.String fileSuffix) |
void |
setRolloverThresholdInBytes(long rolloverThresholdInBytes) |
public static final java.lang.String DEFAULT_BASE_FILENAME
public static final java.lang.String DEFAULT_BASE_PATH
public static final java.lang.String DEFAULT_FILE_SUFFIX
public static long DEFAULT_ROLLOVER_THRESHOLD_IN_BYTES
public HdfsTextFileWriterFactory(org.apache.hadoop.fs.FileSystem fileSystem)
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)
public HdfsWriter createWriter()
createWriter
in interface HdfsWriterFactory