public abstract class FacebookProvider extends Object implements StreamsProvider
StreamsProvider
for facebook.Modifier and Type | Field and Description |
---|---|
protected FacebookConfiguration |
configuration |
protected BlockingQueue<StreamsDatum> |
datums |
Constructor and Description |
---|
FacebookProvider()
FacebookProvider constructor - resolves FacebookConfiguration from JVM 'facebook'.
|
FacebookProvider(FacebookConfiguration configuration)
FacebookProvider constructor - uses supplied FacebookConfiguration.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
protected abstract FacebookDataCollector |
getDataCollector() |
String |
getId() |
boolean |
isRunning() |
void |
overrideIds(Map<String,org.joda.time.DateTime> idsToAfterDate)
Overrides the ids and addedAfter time in the configuration.
|
void |
prepare(Object configurationObject) |
StreamsResultSet |
readCurrent() |
StreamsResultSet |
readNew(BigInteger sequence) |
StreamsResultSet |
readRange(org.joda.time.DateTime start,
org.joda.time.DateTime end) |
void |
startStream() |
protected FacebookConfiguration configuration
protected BlockingQueue<StreamsDatum> datums
public FacebookProvider()
public FacebookProvider(FacebookConfiguration configuration)
public String getId()
getId
in interface StreamsOperation
public void startStream()
startStream
in interface StreamsProvider
protected abstract FacebookDataCollector getDataCollector()
public StreamsResultSet readCurrent()
readCurrent
in interface StreamsProvider
public StreamsResultSet readNew(BigInteger sequence)
readNew
in interface StreamsProvider
public StreamsResultSet readRange(org.joda.time.DateTime start, org.joda.time.DateTime end)
readRange
in interface StreamsProvider
public void prepare(Object configurationObject)
prepare
in interface StreamsOperation
public void cleanUp()
cleanUp
in interface StreamsOperation
public void overrideIds(Map<String,org.joda.time.DateTime> idsToAfterDate)
idsToAfterDate
- idsToAfterDatepublic boolean isRunning()
isRunning
in interface StreamsProvider
Copyright © 2018 The Apache Software Foundation. All rights reserved.