Class FileBlobMessageProducer

    • Field Detail

      • listFile

        protected final File listFile
      • basePath

        protected final String basePath
      • count

        protected long count
      • nbBlobs

        protected final long nbBlobs
    • Constructor Detail

      • FileBlobMessageProducer

        public FileBlobMessageProducer​(int producerId,
                                       File listFile,
                                       String basePath,
                                       long nbBlobs)
    • Method Detail

      • getFileIterator

        protected void getFileIterator()
      • getPartition

        public int getPartition​(BlobMessage message,
                                int partitions)
        Description copied from interface: ProducerIterator
        Returns a partition associated with the Message. The value returned must be between 0 and lower than partitions.
        Parameters:
        message - the message to shard
        partitions - the number of partitions
      • hasNext

        public boolean hasNext()