/** * @see Index#hasValue(java.lang.Object, * java.math.BigInteger) */ public boolean hasValue( Object attrVal, BigInteger id ) throws NamingException { return forward.has( getNormalized( attrVal ), id ); }
/** * @see org.apache.directory.server.core.partition.impl.btree.Index#add(java.lang.Object, * java.math.BigInteger) */ public synchronized void add( Object attrVal, BigInteger id ) throws NamingException { forward.put( getNormalized( attrVal ), id ); reverse.put( id, getNormalized( attrVal ) ); }
/** * @see org.apache.directory.server.core.partition.impl.btree.Index#count(java.lang.Object, boolean) */ public int count( Object attrVal, boolean isGreaterThan ) throws NamingException { return forward.count( getNormalized( attrVal ), isGreaterThan ); }
/** * @see org.apache.directory.server.core.partition.impl.btree.Index#drop(java.lang.Object, * java.math.BigInteger) */ public synchronized void drop( Object attrVal, BigInteger id ) throws NamingException { forward.remove( getNormalized( attrVal ), id ); reverse.remove( id, getNormalized( attrVal ) ); }
/** * @see Index#count(java.lang.Object) */ public int count( Object attrVal ) throws NamingException { return forward.count( getNormalized( attrVal ) ); }
/** * @see Index#forwardLookup(java.lang.Object) */ public BigInteger forwardLookup( Object attrVal ) throws NamingException { return ( BigInteger ) forward.get( getNormalized( attrVal ) ); }
/** * @see Index#hasValue(java.lang.Object, * java.math.BigInteger, boolean) */ public boolean hasValue( Object attrVal, BigInteger id, boolean isGreaterThan ) throws NamingException { return forward.has( getNormalized( attrVal ), id, isGreaterThan ); }
/** * @see org.apache.directory.server.core.partition.impl.btree.Index#listIndices(java.lang.Object) */ public IndexEnumeration listIndices( Object attrVal ) throws NamingException { return new IndexEnumeration( forward.listTuples( getNormalized( attrVal ) ) ); }
/** * @see Index#listIndices(org.apache.regexp.RE, * java.lang.String) */ public IndexEnumeration listIndices( Pattern regex, String prefix ) throws NamingException { return new IndexEnumeration( forward.listTuples( getNormalized( prefix ), true ), false, regex ); }
/** * @see org.apache.directory.server.core.partition.impl.btree.Index#listIndices(java.lang.Object, * boolean) */ public IndexEnumeration listIndices( Object attrVal, boolean isGreaterThan ) throws NamingException { return new IndexEnumeration( forward.listTuples( getNormalized( attrVal ), isGreaterThan ) ); }