public interface ILispDAO
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
get(Object key)
Get the entries from the DAO.
|
void |
getAll(IRowVisitor visitor)
Enumerate all the entries from the DAO.
|
Map<String,Object> |
getBest(Object key)
Get value for longest prefix match from the DAO.
|
AbstractMap.SimpleImmutableEntry<Eid,Map<String,?>> |
getBestPair(Object key)
Get longest prefix match and value from the DAO.
|
Eid |
getCoveringLessSpecific(Eid key)
Look up the covering prefix for the argument, but exclude the argument itself, so the result is always less
specific than the lookup key.
|
Eid |
getParentPrefix(Eid key)
Get parent prefix.
|
Eid |
getSiblingPrefix(Eid key)
Get sibling prefix.
|
Object |
getSpecific(Object key,
String valueKey)
Get a specific value from the DAO.
|
Set<Eid> |
getSubtree(Eid key)
Get the subtree of the given prefix.
|
Eid |
getVirtualParentSiblingPrefix(Eid key)
Get virtual parent sibling prefix.
|
Eid |
getWidestNegativePrefix(Eid key)
Get widest negative prefix.
|
boolean |
isEmpty()
Check if the DAO is empty.
|
void |
put(Object key,
MappingEntry<?>... values)
Put a entry into the DAO.
|
ILispDAO |
putNestedTable(Object key,
String valueKey)
Inserts a new, nested table for given key and subkey.
|
ILispDAO |
putTable(String key)
Insert a new table for given key.
|
void |
remove(Object key)
Remove an entry from the DAO.
|
void |
removeAll()
Clear the DAO and remove all of the entries.
|
void |
removeSpecific(Object key,
String valueKey)
Remove an entry from the DAO.
|
void put(Object key, MappingEntry<?>... values)
key
- The entry's key.values
- The entry's value.Object getSpecific(Object key, String valueKey)
key
- The key of the value to fetchvalueKey
- The value to fetchMap<String,Object> get(Object key)
key
- The key to be looked up as exact match.Map<String,Object> getBest(Object key)
key
- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.AbstractMap.SimpleImmutableEntry<Eid,Map<String,?>> getBestPair(Object key)
key
- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalizedEid getCoveringLessSpecific(Eid key)
key
- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.Eid getParentPrefix(Eid key)
key
- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.Eid getSiblingPrefix(Eid key)
key
- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.Eid getVirtualParentSiblingPrefix(Eid key)
key
- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.Eid getWidestNegativePrefix(Eid key)
key
- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.Set<Eid> getSubtree(Eid key)
key
- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.void getAll(IRowVisitor visitor)
visitor
- The visitor object.void remove(Object key)
key
- The key of the entry to deletevoid removeSpecific(Object key, String valueKey)
key
- The key of the entryvalueKey
- The value to deletevoid removeAll()
ILispDAO putTable(String key)
key
- The key for the tableILispDAO putNestedTable(Object key, String valueKey)
key
- The key for which a new table is linked invalueKey
- The subkey under which to insert the new tableboolean isEmpty()
Copyright © 2019 OpenDaylight. All rights reserved.