| Constructor and Description |
|---|
CalculatedValueIndexer(Index index,
java.util.function.Function<MessageStoreEntry,java.lang.String> calculator)
Creates a
CalculatedValueIndexer. |
| 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 CalculatedValueIndexer(@Nonnull
Index index,
@Nonnull
java.util.function.Function<MessageStoreEntry,java.lang.String> calculator)
CalculatedValueIndexer.index - the Index that is calculated by the calculator functioncalculator - the function that is used to calculate the value for the index@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)