public abstract class AbstractSequenceFileWriter extends OutputStoreObjectSupport
AbstractSequenceFileWriter
is a base implementation handling
writes with a SequenceFile
.Constructor and Description |
---|
AbstractSequenceFileWriter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path basePath,
CodecInfo codec)
Instantiates a new abstract sequence file writer.
|
Modifier and Type | Method and Description |
---|---|
protected SequenceFileWriterHolder<org.apache.hadoop.io.SequenceFile.Writer> |
getOutput()
Gets the output.
|
protected long |
getPosition(org.apache.hadoop.io.SequenceFile.Writer writer) |
findInitFiles, getOutputContext, getResolvedPath, initOutputContext, isAppendable, isFileWriteable, isOverwrite, isSyncable, onInit, renameFile, setAppendable, setFileNamingStrategy, setInWritingPrefix, setInWritingSuffix, setOverwrite, setRolloverStrategy, setSyncable, setWritePosition
doStart, doStop, getCodec, getConfiguration, getPath, handleIdleTimeout, isCompressed, resetIdleTimeout, setCloseTimeout, setIdleTimeout
afterPropertiesSet, getBeanFactory, getPhase, getStoreEventPublisher, getTaskExecutor, getTaskScheduler, isAutoStartup, isRunning, setAutoStartup, setBeanFactory, setPhase, setStoreEventPublisher, setTaskExecutor, setTaskScheduler, start, stop, stop
public AbstractSequenceFileWriter(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path basePath, CodecInfo codec)
configuration
- the hadoop configurationbasePath
- the hdfs pathcodec
- the compression codec infoprotected SequenceFileWriterHolder<org.apache.hadoop.io.SequenceFile.Writer> getOutput() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.protected long getPosition(org.apache.hadoop.io.SequenceFile.Writer writer) throws java.io.IOException
java.io.IOException