Package com.logicaldoc.ai.sampler
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
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:
-
Field Summary
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollect()Collects a list of samplesbooleaninthashCode()voidsetMaxWords(Integer maxWords) Methods inherited from class com.logicaldoc.ai.sampler.Sampler
close, getDescription, getDocId, getFolderId, getLabel, getName, isRecursive, newSampler, setDescription, setDocId, setFolderId, setLabel, setName, setRecursive, toString, typesMethods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Constructor Details
-
ContentSampler
public ContentSampler() -
ContentSampler
-
-
Method Details
-
getMaxWords
-
setMaxWords
-
collect
Description copied from class:SamplerCollects a list of samples- Specified by:
collectin classSampler- Returns:
- The iterator over the samples
- Throws:
IOException- I/O Errorcom.logicaldoc.core.PersistenceException- Error in the data layer
-
hashCode
public int hashCode() -
equals
-