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 TypeMethodDescriptionvoid
close()
collect()
Collects a list of samplesboolean
List
<com.logicaldoc.core.metadata.ExtensibleObject> int
hashCode()
void
setAutomation
(String extractSamplesAutomation) void
setCategory
(String category) void
setFeatures
(String features) void
Methods inherited from class com.logicaldoc.ai.sampler.Sampler
getDescription, getDocId, getFolderId, getLabel, getName, newSampler, setDescription, setDocId, setFolderId, setLabel, setName, toString, types
Methods 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:Sampler
Collects a list of samples- Specified by:
collect
in 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
-