public class DocumentList extends AbstractListMessage<IngestDocument> implements Iterable<IngestDocument>, IndexMessage, PersistsThroughCycles, GroupedMessage
modCount
DEFAULT_MAX_LOG_LENGTH, MESSAGE_DROPPED, MESSAGE_SEND_TIME_PROP, PROP_MAX_LOG_LENGTH
Constructor and Description |
---|
DocumentList()
The default constructor
|
DocumentList(int size)
Creates an empty document list, with pre-allocated space for
size documents. |
DocumentList(UUID cid,
String... workFlows)
Constructor with a client ID and a list of workflows.
|
DocumentList(UUID cid,
WorkflowQueue workFlows)
Constructor with a client ID and a workflow queue.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessageToGroup(GroupedMessage msg)
Adds
msg to the group. |
DocumentList |
clone()
Clones a message.
|
protected IngestDocument |
clone(IngestDocument tmp) |
boolean |
containsDocument(String docID)
Determines if this list contains a given document based on docID.
|
boolean |
equals(Object other) |
IngestDocument |
getDocument(String id)
Gets a document from this list by document ID.
|
long |
getEstimatedSize() |
GroupedMessageId |
getGroupedMessageId() |
List<String> |
getIds()
Returns a new unmodifiable list of all document ID's in this DocumentList.
|
int |
getSize()
Gets the size of the list.
|
int |
hashCode() |
void |
setGroupedMessageId(GroupedMessageId groupedMessageId)
Sets the GroupedMessageId for this message.
|
addMessageHistory, addMessageHistory, getClientId, getMessageHistory, getMessageId, getMetadata, getProperty, getWorkflowQueue, getWorkflowQueue, isRedelivered, removeProperty, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageString, toString, toStringDetailed
add, add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, iterator, spliterator
addMessageHistory, addMessageHistory, getClientId, getMessageHistory, getMessageId, getMetadata, getProperty, getWorkflowQueue, getWorkflowQueue, isRedelivered, removeProperty, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageString
containsAll
parallelStream, stream
public DocumentList()
public DocumentList(int size)
size
documents.public DocumentList(UUID cid, String... workFlows)
cid
- the client IDworkFlows
- the list of workflowspublic DocumentList(UUID cid, WorkflowQueue workFlows)
cid
- the client IDworkFlows
- the workflow queuepublic boolean containsDocument(String docID)
docID
- the document IDpublic IngestDocument getDocument(String id)
id
- the ID to look forpublic int getSize()
public int hashCode()
hashCode
in interface Collection<IngestDocument>
hashCode
in interface List<IngestDocument>
hashCode
in class AbstractListMessage<IngestDocument>
public boolean equals(Object other)
equals
in interface Collection<IngestDocument>
equals
in interface List<IngestDocument>
equals
in class AbstractListMessage<IngestDocument>
public DocumentList clone()
clone
in interface PlatformMessage
clone
in interface IndexMessage
clone
in class AbstractListMessage<IngestDocument>
public List<String> getIds()
public GroupedMessageId getGroupedMessageId()
getGroupedMessageId
in interface GroupedMessage
public void setGroupedMessageId(GroupedMessageId groupedMessageId)
GroupedMessage
GroupedMessage.addMessageToGroup(GroupedMessage)
.setGroupedMessageId
in interface GroupedMessage
public void addMessageToGroup(GroupedMessage msg)
GroupedMessage
msg
to the group. For ordering purposes, msg
will appear after this.addMessageToGroup
in interface GroupedMessage
protected IngestDocument clone(IngestDocument tmp)
clone
in class AbstractListMessage<IngestDocument>
public long getEstimatedSize()
getEstimatedSize
in interface PlatformMessage
getEstimatedSize
in class AbstractListMessage<IngestDocument>
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.