Closed Erfans closed 7 years ago
isLastSegment is a flag that would be used by a CAS multiplier to indicate whether a CAS that was split into multiple segments is the last of the split ones. This is not related to whether there are more resources available to a reader. In order to get a signal when the last document in a pipeline is being processed, use the collectionProcessComplete()
callback in UIMA components.
IsLastSegment does not set on DocumentMetadataAnnotation in ResourceCollectionReaderBase. It could be set when initialing resources (inner class
Resource
) and retrieve it later in initCas or by checking remained resources whengetNext
is called.