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 Summary
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.logicaldoc.ai.sampler.StreamSampler
close, getStream, setStream
Methods inherited from class com.logicaldoc.ai.sampler.Sampler
equals, getDescription, getDocId, getFolderId, getLabel, getName, hashCode, 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
-
ParagraphSampler
public ParagraphSampler() -
ParagraphSampler
-
ParagraphSampler
-
-
Method Details
-
collect
Description copied from class:Sampler
Collects a list of samples- Specified by:
collect
in classSampler
- Returns:
- The iterator over the samples
- Throws:
IOException
- I/O Error
-