|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ldap.server.db.jdbm.JdbmIndex
A Jdbm based index implementation.
Field Summary | |
static java.lang.String |
FORWARD_BTREE
|
static java.lang.String |
REVERSE_BTREE
|
Constructor Summary | |
JdbmIndex(org.apache.ldap.common.schema.AttributeType attribute,
jdbm.RecordManager recMan)
Creates an Index using an existing record manager based on a file. |
|
JdbmIndex(org.apache.ldap.common.schema.AttributeType attribute,
java.lang.String wkDirPath)
TODO Document me! |
Method Summary | |
void |
add(javax.naming.directory.Attribute attr,
java.math.BigInteger id)
TODO Document me! |
void |
add(javax.naming.directory.Attributes attrs,
java.math.BigInteger id)
TODO Document me! |
void |
add(java.lang.Object attrVal,
java.math.BigInteger id)
TODO Document me! |
void |
close()
TODO Document me! |
int |
count()
Gets the total scan count for this index. |
int |
count(java.lang.Object attrVal)
Gets the scan count for the occurance of a specific attribute value within the index. |
int |
count(java.lang.Object attrVal,
boolean isGreaterThan)
TODO Document me! |
void |
drop(javax.naming.directory.Attribute attr,
java.math.BigInteger id)
If the Attribute does not have any values then this reduces to a drop(BigInteger) call. |
void |
drop(javax.naming.directory.Attributes attrs,
java.math.BigInteger id)
If the Attribute for this index within the Attributes does not have any values then this reduces to a drop(BigInteger) call. |
void |
drop(java.math.BigInteger entryId)
TODO Document me! |
void |
drop(java.lang.Object attrVal,
java.math.BigInteger id)
TODO Document me! |
java.math.BigInteger |
forwardLookup(java.lang.Object attrVal)
TODO Document me! |
org.apache.ldap.common.schema.AttributeType |
getAttribute()
Gets the attribute this Index is built upon. |
java.lang.Object |
getNormalized(java.lang.Object attrVal)
TODO Document me! |
boolean |
hasValue(java.lang.Object attrVal,
java.math.BigInteger id)
TODO Document me! |
boolean |
hasValue(java.lang.Object attrVal,
java.math.BigInteger id,
boolean isGreaterThan)
TODO Document me! |
boolean |
hasValue(org.apache.regexp.RE regex,
java.math.BigInteger id)
TODO Document me! |
IndexEnumeration |
listIndices()
TODO Document me! |
IndexEnumeration |
listIndices(java.lang.Object attrVal)
TODO Document me! |
IndexEnumeration |
listIndices(java.lang.Object attrVal,
boolean isGreaterThan)
TODO Document me! |
IndexEnumeration |
listIndices(org.apache.regexp.RE regex)
TODO Document me! |
IndexEnumeration |
listIndices(org.apache.regexp.RE regex,
java.lang.String prefix)
TODO Document me! |
IndexEnumeration |
listReverseIndices(java.math.BigInteger id)
TODO Document me! |
java.lang.Object |
reverseLookup(java.math.BigInteger id)
TODO Document me! |
void |
sync()
TODO Document me! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String FORWARD_BTREE
public static final java.lang.String REVERSE_BTREE
Constructor Detail |
public JdbmIndex(org.apache.ldap.common.schema.AttributeType attribute, jdbm.RecordManager recMan) throws javax.naming.NamingException
attribute
- the attribute specification to base this index onrecMan
- the record manager
javax.naming.NamingException
- if we fail to create B+Trees using recManpublic JdbmIndex(org.apache.ldap.common.schema.AttributeType attribute, java.lang.String wkDirPath) throws javax.naming.NamingException
attribute
- TODOwkDirPath
- TODO
javax.naming.NamingException
- TODOMethod Detail |
public org.apache.ldap.common.schema.AttributeType getAttribute()
Index
getAttribute
in interface Index
Index.getAttribute()
public int count() throws javax.naming.NamingException
Index
count
in interface Index
javax.naming.NamingException
- if their is a failure accessing the indexIndex.count()
public int count(java.lang.Object attrVal) throws javax.naming.NamingException
Index
count
in interface Index
attrVal
- the value of the attribute to get a scan count for
javax.naming.NamingException
- if their is a failure accessing the indexIndex.count(java.lang.Object)
public int count(java.lang.Object attrVal, boolean isGreaterThan) throws javax.naming.NamingException
Index
count
in interface Index
attrVal
- TODOisGreaterThan
- TODO
javax.naming.NamingException
- TODOIndex.count(java.lang.Object, boolean)
public java.math.BigInteger forwardLookup(java.lang.Object attrVal) throws javax.naming.NamingException
Index
forwardLookup
in interface Index
attrVal
- TODO
javax.naming.NamingException
- TODOIndex.forwardLookup(java.lang.Object)
public java.lang.Object reverseLookup(java.math.BigInteger id) throws javax.naming.NamingException
Index
reverseLookup
in interface Index
id
- TODO
javax.naming.NamingException
- TODOIndex.reverseLookup(java.math.BigInteger)
public void add(java.lang.Object attrVal, java.math.BigInteger id) throws javax.naming.NamingException
Index
add
in interface Index
attrVal
- TODOid
- TODO
javax.naming.NamingException
- TODOIndex.add(java.lang.Object,
java.math.BigInteger)
public void add(javax.naming.directory.Attribute attr, java.math.BigInteger id) throws javax.naming.NamingException
Index
add
in interface Index
attr
- TODOid
- TODO
javax.naming.NamingException
- TODOIndex.add(
javax.naming.directory.Attribute, java.math.BigInteger)
public void add(javax.naming.directory.Attributes attrs, java.math.BigInteger id) throws javax.naming.NamingException
Index
add
in interface Index
attrs
- TODOid
- TODO
javax.naming.NamingException
- TODOIndex.add(
javax.naming.directory.Attributes, java.math.BigInteger)
public void drop(java.lang.Object attrVal, java.math.BigInteger id) throws javax.naming.NamingException
Index
drop
in interface Index
attrVal
- TODOid
- TODO
javax.naming.NamingException
- TODOIndex.drop(java.lang.Object,
java.math.BigInteger)
public void drop(java.math.BigInteger entryId) throws javax.naming.NamingException
Index
drop
in interface Index
entryId
- TODO
javax.naming.NamingException
- TODOIndex.drop(java.math.BigInteger)
public void drop(javax.naming.directory.Attribute attr, java.math.BigInteger id) throws javax.naming.NamingException
Index
drop
in interface Index
attr
- TODOid
- TODO
javax.naming.NamingException
- TODOIndex.drop(
javax.naming.directory.Attribute, java.math.BigInteger)
public void drop(javax.naming.directory.Attributes attrs, java.math.BigInteger id) throws javax.naming.NamingException
Index
drop
in interface Index
attrs
- TODOid
- TODO
javax.naming.NamingException
- TODOIndex.drop(
javax.naming.directory.Attributes, java.math.BigInteger)
public IndexEnumeration listReverseIndices(java.math.BigInteger id) throws javax.naming.NamingException
Index
listReverseIndices
in interface Index
id
- TODO
javax.naming.NamingException
- TODOIndex.listReverseIndices(BigInteger)
public IndexEnumeration listIndices() throws javax.naming.NamingException
Index
listIndices
in interface Index
javax.naming.NamingException
- TODOIndex.listIndices()
public IndexEnumeration listIndices(java.lang.Object attrVal) throws javax.naming.NamingException
Index
listIndices
in interface Index
attrVal
- TODO
javax.naming.NamingException
- TODOIndex.listIndices(java.lang.Object)
public IndexEnumeration listIndices(java.lang.Object attrVal, boolean isGreaterThan) throws javax.naming.NamingException
Index
listIndices
in interface Index
attrVal
- TODOisGreaterThan
- TODO
javax.naming.NamingException
- TODOIndex.listIndices(java.lang.Object,
boolean)
public IndexEnumeration listIndices(org.apache.regexp.RE regex) throws javax.naming.NamingException
Index
listIndices
in interface Index
regex
- TODO
javax.naming.NamingException
- TODOIndex.listIndices(org.apache.regexp.RE)
public IndexEnumeration listIndices(org.apache.regexp.RE regex, java.lang.String prefix) throws javax.naming.NamingException
Index
listIndices
in interface Index
regex
- TODOprefix
- TODO
javax.naming.NamingException
- TODOIndex.listIndices(org.apache.regexp.RE,
java.lang.String)
public boolean hasValue(java.lang.Object attrVal, java.math.BigInteger id) throws javax.naming.NamingException
Index
hasValue
in interface Index
attrVal
- TODOid
- TODO
javax.naming.NamingException
- TODOIndex.hasValue(java.lang.Object,
java.math.BigInteger)
public boolean hasValue(java.lang.Object attrVal, java.math.BigInteger id, boolean isGreaterThan) throws javax.naming.NamingException
Index
hasValue
in interface Index
attrVal
- TODOid
- TODOisGreaterThan
- TODO
javax.naming.NamingException
- TODOIndex.hasValue(java.lang.Object,
java.math.BigInteger, boolean)
public boolean hasValue(org.apache.regexp.RE regex, java.math.BigInteger id) throws javax.naming.NamingException
Index
hasValue
in interface Index
regex
- TODOid
- TODO
javax.naming.NamingException
- TODOIndex.hasValue(org.apache.regexp.RE,
java.math.BigInteger)
public void close() throws javax.naming.NamingException
Index
close
in interface Index
javax.naming.NamingException
- TODOIndex.close()
public void sync() throws javax.naming.NamingException
Index
sync
in interface Index
javax.naming.NamingException
- TODOIndex.sync()
public java.lang.Object getNormalized(java.lang.Object attrVal) throws javax.naming.NamingException
getNormalized
in interface Index
attrVal
- TODO
javax.naming.NamingException
- TODO
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |