public static class HdfsState.SequenceFileOptions extends HdfsState.Options
configKey, fileNameFormat, fs, fsUrl, hdfsConfig, rotation, rotationActions, rotationPolicy
Constructor and Description |
---|
SequenceFileOptions() |
Modifier and Type | Method and Description |
---|---|
HdfsState.SequenceFileOptions |
addRotationAction(RotationAction action) |
void |
doCommit(Long txId) |
void |
execute(List<TridentTuple> tuples) |
long |
getCurrentOffset() |
HdfsState.SequenceFileOptions |
withCompressionCodec(String codec) |
HdfsState.SequenceFileOptions |
withCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType compressionType) |
HdfsState.SequenceFileOptions |
withConfigKey(String configKey) |
HdfsState.SequenceFileOptions |
withFileNameFormat(FileNameFormat fileNameFormat) |
HdfsState.SequenceFileOptions |
withFsUrl(String fsUrl) |
HdfsState.SequenceFileOptions |
withRotationPolicy(FileRotationPolicy rotationPolicy) |
HdfsState.SequenceFileOptions |
withSequenceFormat(SequenceFormat format) |
rotateOutputFile, rotateOutputFile
public HdfsState.SequenceFileOptions withCompressionCodec(String codec)
public HdfsState.SequenceFileOptions withFsUrl(String fsUrl)
public HdfsState.SequenceFileOptions withConfigKey(String configKey)
public HdfsState.SequenceFileOptions withFileNameFormat(FileNameFormat fileNameFormat)
public HdfsState.SequenceFileOptions withSequenceFormat(SequenceFormat format)
public HdfsState.SequenceFileOptions withRotationPolicy(FileRotationPolicy rotationPolicy)
public HdfsState.SequenceFileOptions withCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType compressionType)
public HdfsState.SequenceFileOptions addRotationAction(RotationAction action)
public long getCurrentOffset() throws IOException
IOException
public void doCommit(Long txId) throws IOException
IOException
public void execute(List<TridentTuple> tuples) throws IOException
IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.