public class PagingContext extends Object implements Serializable
add(long, Long)
) to the context, if the time for the id is later than the previous latest time, the set
reinitialized. Any ids with a the same timestamp as the current latest time is added to the set of ids. Ids with earlier
timestamps are ignored.
This data structure is necessary to handle the case when a paging request is fulfilled within a series of events with the same timestamp. The context allows the API to resume the page at the proper location within the timestamp.
Constructor and Description |
---|
PagingContext() |
PagingContext(PagingContext other) |
Modifier and Type | Method and Description |
---|---|
void |
add(long t,
Long id) |
boolean |
contains(long id) |
boolean |
equals(Object obj) |
HashSet<Long> |
getIds() |
long |
getTimestamp() |
int |
hashCode() |
public PagingContext()
public PagingContext(PagingContext other)
public long getTimestamp()
public boolean contains(long id)
public void add(long t, Long id)
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.