public boolean equals( Object other ) { if ( this == other ) { return true; } if ( !( other instanceof LeafNode ) ) { return false; } //noinspection SimplifiableIfStatement if ( other.getClass() != this.getClass() ) { return false; } return attribute.equals( ( ( LeafNode ) other ).getAttribute() ); } }
/** * Gets the total number of entries within the database index if one is * available otherwise the count of all the entries within the database is * returned. * * @param node the leaf node to get a full scan count for * @return the worst case full scan count * @throws NamingException if there is an error access database indices */ private BigInteger getFullScan( LeafNode node ) throws NamingException { if ( db.hasUserIndexOn( node.getAttribute() ) ) { Index idx = db.getUserIndex( node.getAttribute() ); int count = idx.count(); return BigInteger.valueOf( count ); } return MAX; }
if ( db.hasUserIndexOn( leaf.getAttribute() ) ) Index idx = db.getUserIndex( leaf.getAttribute() ); return BigInteger.valueOf( idx.count() );
if ( !attributeRegistry.hasAttributeType( ln.getAttribute() ) ) buf.append( ln.getAttribute() ); buf.append( "' not evaluted at all. Only using scope node." ); log.warn( buf.toString() );
if ( db.hasUserIndexOn( child.getAttribute() ) ) idx = db.getUserIndex( child.getAttribute() ); childEnumeration = idx.listIndices();
if ( !attributeRegistry.hasAttributeType( ln.getAttribute() ) ) buf.append( ln.getAttribute() ); buf.append( "' not evaluted at all. Returning empty enumeration." ); log.warn( buf.toString() ); if ( !attributeRegistry.hasAttributeType( ln.getAttribute() ) ) buf.append( ln.getAttribute() ); buf.append( "' not evaluted at all. Returning empty enumeration." ); log.warn( buf.toString() ); if ( attributeRegistry.hasDescendants( leaf.getAttribute() ) ) Iterator descendants = attributeRegistry.descendants( leaf.getAttribute() );
if ( !ncn.isDefined( ln.getAttribute() ) ) buf.append( ln.getAttribute() ); buf.append( "' from filter." ); log.warn( buf.toString() );
try if ( attrRegistry.hasDescendants( leaf.getAttribute() ) ) Iterator descendants = attrRegistry.descendants( leaf.getAttribute() ); while ( descendants.hasNext() )