| Constructor and Description |
|---|
CompositeIndexer(com.google.common.collect.ImmutableList<Indexer> indexers)
Creates a
CompositeIndex from a list of Indexers. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
calc(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.
|
MessageStoreEntry |
index(MessageStoreEntry entry) |
boolean |
supports(Index index) |
public CompositeIndexer(com.google.common.collect.ImmutableList<Indexer> indexers)
CompositeIndex from a list of Indexers.
If there are multiple Indexers responsible for the same Index,
the first Indexer instance will be used and all other instances will not be used
to calculate the Index.
indexers - the indexers used to build the composite@Nonnull public com.google.common.collect.ImmutableSet<Index> getIndexes()
IndexergetIndexes in interface Indexerpublic boolean supports(@Nonnull
Index index)
public java.lang.String calc(@Nonnull
Index index,
@Nonnull
MessageStoreEntry entry)
Indexer@Nonnull public MessageStoreEntry index(@Nonnull MessageStoreEntry entry)