public interface GridStreamerIndexProvider<E,K,V> extends GridStreamerIndexProviderMBean
GridStreamerWindow
to perform event indexing.
To configure index for a streamer window, use
GridStreamerWindowAdapter.setIndexes(GridStreamerIndexProvider[]).
| Modifier and Type | Method and Description |
|---|---|
void |
add(GridStreamerIndexUpdateSync sync,
E evt)
Adds an event to index.
|
void |
dispose()
Disposes the index.
|
void |
endUpdate(GridStreamerIndexUpdateSync sync,
E evt,
boolean rollback,
boolean rmv)
Finalizes an update operation.
|
String |
getName()
Gets index name.
|
GridStreamerIndexPolicy |
getPolicy()
Gets event indexing policy, which defines how events
are tracked within an index.
|
GridStreamerIndex<E,K,V> |
index()
Gets user view for this index.
|
void |
initialize()
Initializes the index.
|
boolean |
isUnique()
Checks whether this index is unique or not.
|
void |
remove(GridStreamerIndexUpdateSync sync,
E evt)
Removes an event from index.
|
void |
reset()
Resets the index to an initial empty state.
|
name, policy, size, sorted, unique, updaterClassString getName()
GridStreamerIndex<E,K,V> index()
void initialize()
void reset()
void dispose()
void add(GridStreamerIndexUpdateSync sync, E evt) throws GridException
sync - Index update synchronizer.evt - Event to add to an index.GridException - If failed to add event to an index.void remove(GridStreamerIndexUpdateSync sync, E evt) throws GridException
sync - Index update synchronizer.evt - Event to remove from index.GridException - If failed to add event to an index.GridStreamerIndexPolicy getPolicy()
boolean isUnique()
Object.equals(Object) returns true), an exception
is thrown.True for unique index.void endUpdate(GridStreamerIndexUpdateSync sync, E evt, boolean rollback, boolean rmv)
sync - Index update synchronizer.evt - Updated event.rollback - Rollback flag. If true, a rollback was made.rmv - Remove flag. If true, the event was removed from index.Copyright © 2014. All rights reserved.