Package de.otto.synapse.messagestore
Class CompositeIndexer
java.lang.Object
de.otto.synapse.messagestore.CompositeIndexer
- All Implemented Interfaces:
Indexer
@Beta public class CompositeIndexer extends java.lang.Object implements Indexer
An
Indexer that is a composition of other Indexers.-
Constructor Summary
Constructors Constructor Description CompositeIndexer(com.google.common.collect.ImmutableList<Indexer> indexers)Creates aCompositeIndexfrom a list ofIndexers. -
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)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CompositeIndexer
Creates aCompositeIndexfrom a list ofIndexers.If there are multiple
Indexersresponsible for the sameIndex, the firstIndexerinstance will be used and all other instances will not be used to calculate theIndex.- Parameters:
indexers- the indexers used to build the composite
-
-
Method Details
-
getIndexes
Description copied from interface:IndexerReturns the indexes supported by this Indexer.- Specified by:
getIndexesin interfaceIndexer- Returns:
- Set of Index instances
-
supports
-
calc
Description copied from interface:IndexerCalculates the Index value from the message-store entry. -
index
-