T
- the type of data being indexedpublic class MetadataIndexStore<T> extends Object
EntityDescriptor
,
under one or more instances of MetadataIndexKey
.Modifier and Type | Field and Description |
---|---|
private Map<MetadataIndexKey,Set<T>> |
index
The indexed storage of data.
|
Constructor and Description |
---|
MetadataIndexStore()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(MetadataIndexKey key,
T item)
Add the supplied data item to the index under the supplied
MetadataIndexKey . |
void |
clear()
Clear all indexed data items from the store.
|
void |
clear(MetadataIndexKey key)
Clear all data items indexed under the supplied
MetadataIndexKey . |
Set<MetadataIndexKey> |
getKeys()
Get the set of all
MetadataIndexKey instances currently indexed. |
Set<T> |
lookup(MetadataIndexKey key)
Lookup the instances of data indexed under the supplied
MetadataIndexKey . |
void |
remove(MetadataIndexKey key,
T item)
Remove the supplied data item from the index under the supplied
MetadataIndexKey . |
@Nonnull private Map<MetadataIndexKey,Set<T>> index
@Nonnull @NonnullElements @Unmodifiable @NotLive public Set<MetadataIndexKey> getKeys()
MetadataIndexKey
instances currently indexed.@Nonnull @NonnullElements @Unmodifiable @NotLive public Set<T> lookup(@Nonnull MetadataIndexKey key)
MetadataIndexKey
.key
- the index key to lookuppublic void add(MetadataIndexKey key, T item)
MetadataIndexKey
.key
- the index keyitem
- the data item to indexpublic void remove(MetadataIndexKey key, T item)
MetadataIndexKey
.key
- the index keyitem
- the data item to indexpublic void clear(MetadataIndexKey key)
MetadataIndexKey
.key
- the index keypublic void clear()
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.