public class InstagramCommentsCollector extends InstagramDataCollector<Comment>
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_ATTEMPTS |
backOffStrategy, dataQueue, instagram, isCompleted
Constructor and Description |
---|
InstagramCommentsCollector(Instagram instagram,
Queue<StreamsDatum> queue,
InstagramCommentsProviderConfiguration config) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectInstagramCommentsForMedia(String mediaId)
Pull Comments on a specific media and queues the resulting data.
|
protected StreamsDatum |
convertToStreamsDatum(Comment item)
Takes an Instagram Object and sets it as the document of a streams datum and sets the id of the streams datum.
|
void |
run() |
getNextInstagramClient, isCompleted, numAvailableTokens, queueData, swapUsernameForId
protected static final int MAX_ATTEMPTS
public InstagramCommentsCollector(Instagram instagram, Queue<StreamsDatum> queue, InstagramCommentsProviderConfiguration config)
public void run()
protected void collectInstagramCommentsForMedia(String mediaId) throws Exception
mediaId
- mediaIdException
- Exceptionprotected StreamsDatum convertToStreamsDatum(Comment item)
InstagramDataCollector
convertToStreamsDatum
in class InstagramDataCollector<Comment>
item
- itemCopyright © 2018 The Apache Software Foundation. All rights reserved.