Class RandomDocumentMessageProducer

java.lang.Object
org.nuxeo.lib.stream.pattern.producer.AbstractProducer<DocumentMessage>
org.nuxeo.importer.stream.producer.RandomDocumentMessageProducer
All Implemented Interfaces:
AutoCloseable, Iterator<DocumentMessage>, ProducerIterator<DocumentMessage>

public class RandomDocumentMessageProducer extends AbstractProducer<DocumentMessage>
Since:
9.1
  • Field Details

    • nbDocuments

      protected final long nbDocuments
    • blobInfoFetcher

      protected final BlobInfoFetcher blobInfoFetcher
    • countFolderAsDocument

      protected boolean countFolderAsDocument
    • maxFoldersPerFolder

      protected int maxFoldersPerFolder
    • maxDocumentsPerFolder

      protected int maxDocumentsPerFolder
    • blobSizeKB

      protected int blobSizeKB
    • blobOnlyText

      protected boolean blobOnlyText
    • documentCount

      protected int documentCount
    • folderCount

      protected int folderCount
    • rand

      protected final Random rand
    • gen

      protected static RandomTextGenerator gen
    • DC_NATURE

      protected static final String[] DC_NATURE
    • DC_SUBJECTS

      protected static final String[] DC_SUBJECTS
    • DC_RIGHTS

      protected static final String[] DC_RIGHTS
    • DC_LANGUAGE

      protected static final String[] DC_LANGUAGE
    • DC_SOURCE

      protected static final String[] DC_SOURCE
    • DC_COVERAGE

      protected static final String[] DC_COVERAGE
    • foldersInCurrentFolderLimit

      protected int foldersInCurrentFolderLimit
    • documentInCurrentFolderLimit

      protected int documentInCurrentFolderLimit
    • currentType

    • parentIndex

      protected int parentIndex
    • parents

      protected List<String> parents
    • folderishChildren

      protected List<String> folderishChildren
    • children

      protected Set<String> children
    • documentInCurrentFolderCount

      protected int documentInCurrentFolderCount
  • Constructor Details

    • RandomDocumentMessageProducer

      public RandomDocumentMessageProducer(int producerId, long nbDocuments, String lang, BlobInfoFetcher blobInfoFetcher)
  • Method Details