Package de.otto.synapse.messagestore
Interface Indexer
- All Known Implementing Classes:
CalculatedValueIndexer,CompositeIndexer,StaticValueIndexer
@Beta
public interface Indexer
Indexes
message-store entries added to a MessageStore so it can later be
retrieved using MessageStore.stream(Index,String).-
Method Summary
Modifier and Type Method Description java.lang.Stringcalc(Index index, MessageStoreEntry entry)Calculates the Index value from the message-store entry.com.google.common.collect.ImmutableSet<Index>getIndexes()Returns the indexes supported by this Indexer.MessageStoreEntryindex(MessageStoreEntry entry)booleansupports(Index index)
-
Method Details
-
getIndexes
Returns the indexes supported by this Indexer.- Returns:
- Set of Index instances
-
supports
- Parameters:
index- the Index- Returns:
- true, if the Index is supported, false otherwise.
-
calc
Calculates the Index value from the message-store entry.- Parameters:
index- the Indexentry- the MessageStoreEntry- Returns:
- indexed value
-
index
-