Class ChunkMetadata
java.lang.Object
org.apache.uima.collection.impl.cpm.utils.ChunkMetadata
Convenience class that is used to hold metadata associated with chunking and sequencing of
documents. It allows the OutputQueue to manage sequencing of chunks destined for the CasConsumer.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocId()
int
getURL()
boolean
isLast()
boolean
boolean
void
setThrottleID
(String aThrottleID) void
setTimedOut
(boolean b) void
-
Field Details
-
SEQUENCE
- See Also:
-
DOCUMENTID
- See Also:
-
ISCOMPLETED
- See Also:
-
DOCUMENTURL
- See Also:
-
THROTTLEID
- See Also:
-
docId
-
sequence
private int sequence -
last
private boolean last -
timedOut
private boolean timedOut -
url
-
throttleID
-
-
Constructor Details
-
ChunkMetadata
-
-
Method Details
-
isLast
public boolean isLast() -
getSequence
public int getSequence() -
isOneOfMany
public boolean isOneOfMany() -
getDocId
-
getThrottleID
-
getURL
-
isTimedOut
public boolean isTimedOut()- Returns:
- true if timed out
-
setTimedOut
public void setTimedOut(boolean b) - Parameters:
b
-
-
setThrottleID
-
setURL
-