public class FileBlobMessageProducer extends AbstractProducer<BlobMessage>
| Constructor and Description |
|---|
FileBlobMessageProducer(int producerId,
File listFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getPartition(BlobMessage message,
int partitions)
Returns a partition associated with the
Message. |
boolean |
hasNext() |
BlobMessage |
next() |
getProducerIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveforEachRemainingpublic FileBlobMessageProducer(int producerId, File listFile)
public int getPartition(BlobMessage message, int partitions)
ProducerIteratorMessage.
The value returned must be between 0 and lower than partitions.message - the message to shardpartitions - the number of partitionspublic void close() throws Exception
close in interface AutoCloseableclose in class AbstractProducer<BlobMessage>Exceptionpublic boolean hasNext()
public BlobMessage next()
Copyright © 2017 Nuxeo. All rights reserved.