Node Director
|
implements a search index for lists of DBObjects. More...
Public Member Functions | |
DBSetIndex () | |
DBSetIndex (String attr) | |
String | searchAttr () |
String | searchAttr (String attr) |
synchronized void | resetIndex () |
synchronized void | add (DBObject dbo) |
void | add (Enumeration elements) |
void | add (Vector elements) |
synchronized void | remove (DBObject dbo) |
DBObject | getFirst (String key) |
get the first matching object for a specific key. | |
DBObject | getFirst (DBObject keyObj) |
get the first object being associated with the keys in the keyObj. | |
Vector | get (String key) |
get a Vector of matching DBObjects for a specific key. | |
Vector | get (DBObject keyObj) |
get a Vector of all DBObjects associated with one of the keys in the keyObj. | |
Vector | get (Pattern search) |
get a Vector of matching DBObjects for a specific key regex. |
Public Attributes | |
final String | EMPTY = "" |
Protected Member Functions | |
Vector | indexKeys (DBObject dbo) |
Protected Attributes | |
Hashtable | index = new Hashtable() |
String | searchAttr = null |
implements a search index for lists of DBObjects.
Builds an index of DBObjects for fast searching of DBObjects with one attribute as the search key.
sfi.director.repository.DBSetIndex.DBSetIndex | ( | ) |
sfi.director.repository.DBSetIndex.DBSetIndex | ( | String | attr | ) |
References sfi.director.repository.DBSetIndex.searchAttr().
synchronized void sfi.director.repository.DBSetIndex.add | ( | DBObject | dbo | ) |
References sfi.director.repository.DBSetIndex.index, sfi.director.repository.DBSetIndex.indexKeys(), and sfi.director.repository.DBSetIndex.searchAttr().
Referenced by sfi.director.repository.DBSetIndex.add(), sfi.director.repository.DBSet.index(), sfi.director.repository.DBSetIndex.resetIndex(), sfi.director.repository.DBSet.setupIndex(), and sfi.director.repository.transform.ExpandGroupOfGroups.transform().
void sfi.director.repository.DBSetIndex.add | ( | Enumeration | elements | ) |
References sfi.director.repository.DBSetIndex.add().
void sfi.director.repository.DBSetIndex.add | ( | Vector | elements | ) |
References sfi.director.repository.DBSetIndex.add().
Vector sfi.director.repository.DBSetIndex.get | ( | String | key | ) |
get a Vector of matching DBObjects for a specific key.
Returns an empty vector if no matching object was found.
References sfi.director.repository.DBSetIndex.index.
Referenced by sfi.director.application.autodoc.CollectWinWMIHW.collect(), sfi.director.application.autodoc.CollectWinWMIPartitions.collect(), sfi.director.application.autodoc.CollectWinWMIApps.collect(), sfi.director.application.objevents.EventEnvironment.findObjectEvents(), sfi.director.repository.DBSet.indexedGet(), sfi.director.application.PackageList.removeNewer(), sfi.director.repository.transform.TargetFolders.transform(), sfi.director.repository.transform.DefaultGroupMembers.transform(), sfi.director.repository.transform.ExpandGroupOfGroups.transform(), and sfi.director.repository.transform.HostAssignedUsers.transform().
Vector sfi.director.repository.DBSetIndex.get | ( | DBObject | keyObj | ) |
get a Vector of all DBObjects associated with one of the keys in the keyObj.
Returns an empty Vector if no matching object was found.
References sfi.director.repository.DBSetIndex.indexKeys(), and sfi.director.repository.DBSetIndex.searchAttr().
Vector sfi.director.repository.DBSetIndex.get | ( | Pattern | search | ) |
get a Vector of matching DBObjects for a specific key regex.
Returns an empty vector if no matching object was found.
References sfi.director.repository.DBSetIndex.index.
DBObject sfi.director.repository.DBSetIndex.getFirst | ( | String | key | ) |
get the first matching object for a specific key.
Returns null if no matching object was found.
Referenced by sfi.director.repository.DBSetIndex.getFirst(), sfi.director.application.objevents.EventEnvironment.getTask(), sfi.director.repository.DBSet.indexedGet(), sfi.director.application.objevents.EventEnvironment.loadevents(), sfi.director.repository.transform.GroupOfMembers.transform(), and sfi.director.repository.transform.AD2Group.transform().
get the first object being associated with the keys in the keyObj.
Returns null if no matching object was found.
References sfi.director.repository.DBSetIndex.getFirst(), sfi.director.repository.DBSetIndex.indexKeys(), and sfi.director.repository.DBSetIndex.searchAttr().
|
protected |
References sfi.director.repository.DBSetIndex.EMPTY, sfi.director.repository.DBObject.getAttribute(), and sfi.director.repository.DBSetIndex.searchAttr().
Referenced by sfi.director.repository.DBSetIndex.add(), sfi.director.repository.DBSetIndex.get(), sfi.director.repository.DBSetIndex.getFirst(), and sfi.director.repository.DBSetIndex.remove().
synchronized void sfi.director.repository.DBSetIndex.remove | ( | DBObject | dbo | ) |
synchronized void sfi.director.repository.DBSetIndex.resetIndex | ( | ) |
References sfi.director.repository.DBSetIndex.add(), and sfi.director.repository.DBSetIndex.index.
Referenced by sfi.director.repository.DBSetIndex.searchAttr().
String sfi.director.repository.DBSetIndex.searchAttr | ( | ) |
String sfi.director.repository.DBSetIndex.searchAttr | ( | String | attr | ) |
final String sfi.director.repository.DBSetIndex.EMPTY = "" |
Referenced by sfi.director.repository.DBSetIndex.indexKeys().
|
protected |
|
protected |