Package com.logicaldoc.ai.sampler
Class ParagraphSampler
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.ai.sampler.Sampler
com.logicaldoc.ai.sampler.StreamSampler
com.logicaldoc.ai.sampler.ParagraphSampler
- All Implemented Interfaces:
- Closeable,- Serializable,- AutoCloseable
A 
Expected format of each resource is this one:
StreamSampler that extracts the paragraphs interpreted as blocks of
 text separated by blank lines. Expected format of each resource is this one:
A colleague of mine told me that the document 12356897 contains very important information, so I want to get it. Understood, but are your registered as LogicalDOC's user ? If you are a user, just access the interface and then execute a search by document id = 12356897. Where can I locate a specific file? I was not able to find what I was looking for. Ok, just enter LogicalDOC and search for document with ID -96668429, it is very easy. Sure! Easy and quick, many thanks for your hint.
The example above will produce two paragraphs.
- 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 SummaryMethods inherited from class com.logicaldoc.ai.sampler.StreamSamplerclose, getStream, setStreamMethods inherited from class com.logicaldoc.ai.sampler.Samplerequals, getDescription, getDocId, getFolderId, getLabel, getName, hashCode, 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- 
ParagraphSamplerpublic ParagraphSampler()
- 
ParagraphSampler
- 
ParagraphSampler
 
- 
- 
Method Details- 
collectDescription copied from class:SamplerCollects a list of samples- Specified by:
- collectin class- Sampler
- Returns:
- The iterator over the samples
- Throws:
- IOException- I/O Error
 
 
-