public class TwitterSpritzerFirehoseFactory extends Object implements FirehoseFactory<InputRowParser>
Constructor and Description |
---|
TwitterSpritzerFirehoseFactory(Integer maxEventCount,
Integer maxRunMinutes) |
Modifier and Type | Method and Description |
---|---|
Firehose |
connect(InputRowParser parser,
File temporaryDirectory)
Initialization method that connects up the fire hose.
|
int |
getMaxEventCount() |
int |
getMaxRunMinutes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect
public Firehose connect(InputRowParser parser, File temporaryDirectory) throws IOException
FirehoseFactory
PrefetchableTextFilesFirehoseFactory
may use a temporary
directory to cache data in it.connect
in interface FirehoseFactory<InputRowParser>
parser
- an input row parsertemporaryDirectory
- a directory where temporary files are storedIOException
public int getMaxEventCount()
public int getMaxRunMinutes()
Copyright © 2011–2018. All rights reserved.