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 SummaryFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.SamplergetDescription, getDocId, getFolderId, getLabel, getName, newSampler, setDescription, setDocId, setFolderId, setLabel, setName, toString, typesMethods inherited from class com.logicaldoc.core.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
- 
Constructor Details- 
MetadataSamplerpublic MetadataSampler()
- 
MetadataSampler
 
- 
- 
Method Details- 
getAutomation
- 
setAutomation
- 
getSource
- 
setSource
- 
getCategory
- 
setCategory
- 
getFeatures
- 
getFeaturesList
- 
setFeatures
- 
close- Throws:
- IOException
 
- 
collectpublic Sampling collect() throws IOException, com.logicaldoc.core.PersistenceException, com.logicaldoc.core.automation.AutomationExceptionDescription copied from class:SamplerCollects a list of samples- Specified by:
- collectin class- Sampler
- Returns:
- The iterator over the samples
- Throws:
- IOException- I/O Error
- com.logicaldoc.core.PersistenceException- Error in the data layer
- com.logicaldoc.core.automation.AutomationException- Error in the automation engine
 
- 
hashCodepublic int hashCode()
- 
equals
 
-