|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Index
Required interfaces for an index.
Method Summary | |
---|---|
void |
add(javax.naming.directory.Attribute attr,
java.math.BigInteger id)
|
void |
add(javax.naming.directory.Attributes attrs,
java.math.BigInteger id)
|
void |
add(java.lang.Object attrVal,
java.math.BigInteger id)
|
void |
close()
|
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)
|
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)
|
void |
drop(java.lang.Object attrVal,
java.math.BigInteger id)
|
java.math.BigInteger |
forwardLookup(java.lang.Object attrVal)
|
org.apache.directory.shared.ldap.schema.AttributeType |
getAttribute()
Gets the attribute this Index is built upon. |
java.lang.Object |
getNormalized(java.lang.Object attrVal)
Gets the normalized value for an attribute. |
boolean |
hasValue(java.lang.Object attrVal,
java.math.BigInteger id)
|
boolean |
hasValue(java.lang.Object attrVal,
java.math.BigInteger id,
boolean isGreaterThan)
|
boolean |
hasValue(java.util.regex.Pattern regex,
java.math.BigInteger id)
|
IndexEnumeration |
listIndices()
|
IndexEnumeration |
listIndices(java.lang.Object attrVal)
|
IndexEnumeration |
listIndices(java.lang.Object attrVal,
boolean isGreaterThan)
|
IndexEnumeration |
listIndices(java.util.regex.Pattern regex)
|
IndexEnumeration |
listIndices(java.util.regex.Pattern regex,
java.lang.String prefix)
|
IndexEnumeration |
listReverseIndices(java.math.BigInteger id)
|
java.lang.Object |
reverseLookup(java.math.BigInteger id)
|
void |
sync()
|
Method Detail |
---|
org.apache.directory.shared.ldap.schema.AttributeType getAttribute()
java.lang.Object getNormalized(java.lang.Object attrVal) throws javax.naming.NamingException
attrVal
- the user provided value to normalize
javax.naming.NamingException
- if something goes wrong.int count() throws javax.naming.NamingException
javax.naming.NamingException
- if their is a failure accessing the indexint count(java.lang.Object attrVal) throws javax.naming.NamingException
attrVal
- the value of the attribute to get a scan count for
javax.naming.NamingException
- if their is a failure accessing the indexint count(java.lang.Object attrVal, boolean isGreaterThan) throws javax.naming.NamingException
javax.naming.NamingException
java.math.BigInteger forwardLookup(java.lang.Object attrVal) throws javax.naming.NamingException
javax.naming.NamingException
java.lang.Object reverseLookup(java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
void add(java.lang.Object attrVal, java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
void add(javax.naming.directory.Attribute attr, java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
void add(javax.naming.directory.Attributes attrs, java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
void drop(java.math.BigInteger entryId) throws javax.naming.NamingException
javax.naming.NamingException
void drop(java.lang.Object attrVal, java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
void drop(javax.naming.directory.Attribute attr, java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
void drop(javax.naming.directory.Attributes attrs, java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
IndexEnumeration listReverseIndices(java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
IndexEnumeration listIndices() throws javax.naming.NamingException
javax.naming.NamingException
IndexEnumeration listIndices(java.lang.Object attrVal) throws javax.naming.NamingException
javax.naming.NamingException
IndexEnumeration listIndices(java.lang.Object attrVal, boolean isGreaterThan) throws javax.naming.NamingException
javax.naming.NamingException
IndexEnumeration listIndices(java.util.regex.Pattern regex) throws javax.naming.NamingException
javax.naming.NamingException
IndexEnumeration listIndices(java.util.regex.Pattern regex, java.lang.String prefix) throws javax.naming.NamingException
javax.naming.NamingException
boolean hasValue(java.lang.Object attrVal, java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
boolean hasValue(java.lang.Object attrVal, java.math.BigInteger id, boolean isGreaterThan) throws javax.naming.NamingException
javax.naming.NamingException
boolean hasValue(java.util.regex.Pattern regex, java.math.BigInteger id) throws javax.naming.NamingException
javax.naming.NamingException
void close() throws javax.naming.NamingException
javax.naming.NamingException
void sync() throws javax.naming.NamingException
javax.naming.NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |