Package com.logicaldoc.ai.sampler
Class MetadataSampler
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.ai.sampler.Sampler
com.logicaldoc.ai.sampler.MetadataSampler
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
A
Sampler that extract samples from a list of extensible objects. By
default the extended attributes are considered as the features, and so the
provided collection of objects must share the same attributes scheme. But
with the Automation you may extract whatever data for each object.- Since:
- 9.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 TypeMethodDescriptionvoidclose()collect()Collects a list of samplesbooleanList<com.logicaldoc.core.metadata.ExtensibleObject> inthashCode()voidsetAutomation(String extractSamplesAutomation) voidsetCategory(String category) voidsetFeatures(String features) voidMethods inherited from class com.logicaldoc.ai.sampler.Sampler
getDescription, getDocId, getFolderId, getLabel, getName, newSampler, setDescription, setDocId, setFolderId, setLabel, setName, toString, typesMethods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Constructor Details
-
MetadataSampler
public MetadataSampler() -
MetadataSampler
-
-
Method Details
-
getAutomation
-
setAutomation
-
getSource
-
setSource
-
getCategory
-
setCategory
-
getFeatures
-
getFeaturesList
-
setFeatures
-
close
- Throws:
IOException
-
collect
public Sampling collect() throws IOException, com.logicaldoc.core.PersistenceException, com.logicaldoc.core.automation.AutomationExceptionDescription 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 layercom.logicaldoc.core.automation.AutomationException- Error in the automation engine
-
hashCode
public int hashCode() -
equals
-