public class AvroGenericRecordBolt extends AbstractHdfsBolt
collector, configKey, fileNameFormat, fileRetryCount, fs, fsUrl, hdfsConfig, maxOpenFiles, offset, partitioner, rotationActions, rotationCounterMap, rotationPolicy, rotationTimer, syncPolicy, tickTupleInterval, writeLock, writers
Constructor and Description |
---|
AvroGenericRecordBolt() |
cleanup, declareOutputFields, execute, getBasePathForNextFile, getComponentConfiguration, prepare, rotateOutputFile
public AvroGenericRecordBolt withFsUrl(String fsUrl)
public AvroGenericRecordBolt withConfigKey(String configKey)
public AvroGenericRecordBolt withFileNameFormat(FileNameFormat fileNameFormat)
public AvroGenericRecordBolt withSyncPolicy(SyncPolicy syncPolicy)
public AvroGenericRecordBolt withRotationPolicy(FileRotationPolicy rotationPolicy)
public AvroGenericRecordBolt addRotationAction(RotationAction action)
public AvroGenericRecordBolt withTickTupleIntervalSeconds(int interval)
public AvroGenericRecordBolt withMaxOpenFiles(int maxOpenFiles)
public AvroGenericRecordBolt withPartitioner(Partitioner partitioner)
protected void doPrepare(Map<String,Object> conf, TopologyContext topologyContext, OutputCollector collector) throws IOException
doPrepare
in class AbstractHdfsBolt
IOException
protected String getWriterKey(Tuple tuple)
getWriterKey
in class AbstractHdfsBolt
protected AbstractHDFSWriter makeNewWriter(org.apache.hadoop.fs.Path path, Tuple tuple) throws IOException
makeNewWriter
in class AbstractHdfsBolt
IOException
Copyright © 2023 The Apache Software Foundation. All rights reserved.