Class ContentSampler

java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.ai.sampler.Sampler
com.logicaldoc.ai.sampler.ContentSampler
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable

@Entity public class ContentSampler extends Sampler
A Sampler that extract the body contents from the documents inside a folder or folder's tree.
Since:
9.2.2
Author:
Marco Meschieri - LogicalDOC
See Also:
  • Constructor Details

    • ContentSampler

      public ContentSampler()
    • ContentSampler

      public ContentSampler(Long folderId, boolean recursive)
  • Method Details

    • getMaxWords

      public Integer getMaxWords()
    • setMaxWords

      public void setMaxWords(Integer maxWords)
    • collect

      public Sampling collect() throws IOException, com.logicaldoc.core.PersistenceException
      Description copied from class: Sampler
      Collects a list of samples
      Specified by:
      collect in class Sampler
      Returns:
      The iterator over the samples
      Throws:
      IOException - I/O Error
      com.logicaldoc.core.PersistenceException - Error in the data layer
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Sampler
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Sampler