public class RocketMQFirehoseFactory extends Object implements FirehoseFactory<ByteBufferInputRowParser>
| Constructor and Description |
|---|
RocketMQFirehoseFactory(Properties consumerProps,
String consumerGroup,
List<String> feed,
String pullBatchSize) |
| Modifier and Type | Method and Description |
|---|---|
Firehose |
connect(ByteBufferInputRowParser byteBufferInputRowParser,
File temporaryDirectory)
Initialization method that connects up the fire hose.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectpublic RocketMQFirehoseFactory(Properties consumerProps, String consumerGroup, List<String> feed, String pullBatchSize)
public Firehose connect(ByteBufferInputRowParser byteBufferInputRowParser, File temporaryDirectory) throws IOException, ParseException
FirehoseFactoryPrefetchableTextFilesFirehoseFactory may use a temporary
directory to cache data in it.connect in interface FirehoseFactory<ByteBufferInputRowParser>byteBufferInputRowParser - an input row parsertemporaryDirectory - a directory where temporary files are storedIOExceptionParseExceptionCopyright © 2011–2017. All rights reserved.