private BaseEntryFilteringCursor findObject(SearchingOperationContext ctx) { DN dn = ctx.getDn(); String dnName = dn.getName(); ServerEntry se = ctx.getEntry(); log.debug("findObject()::dn=" + dnName + "::entry=" + se.toString()); //1. Try cache se = m_EntryCache.get(dn.getName()); if (se != null) { return new BaseEntryFilteringCursor( new SingletonCursor<ServerEntry>(se), ctx); } // return an empty result return new BaseEntryFilteringCursor(new EmptyCursor<ServerEntry>(), ctx); }//findObject
/** * {@inheritDoc} */ public Cursor<V> valueCursor( K key ) throws Exception { if ( key == null ) { return new EmptyCursor<V>(); } LinkedAvlMapNode<K, V> node = avl.find( key ); if ( node == null ) { return new EmptyCursor<V>(); } if ( node.getValue().isOrderedSet() ) { return new AvlTreeCursor<V>( node.getValue().getOrderedSet() ); } return new SingletonCursor<V>( node.getValue().getSingleton(), valComparator ); }
/** * {@inheritDoc} */ public Cursor<Tuple<K, V>> cursor( K key ) throws Exception { if ( key == null ) { return new EmptyCursor<Tuple<K,V>>(); } LinkedAvlMapNode<K, V> node = avl.find( key ); if ( node == null ) { return new EmptyCursor<Tuple<K,V>>(); } if ( node.getValue().isOrderedSet() ) { return new KeyTupleAvlCursor<K,V>( node.getValue().getOrderedSet(), key ); } return new SingletonCursor<Tuple<K,V>>( new Tuple<K,V>( key, node.getValue().getSingleton() ), keyOnlytupleComparator ); }
dupsCursor = new SingletonCursor<V>( values.getSingleton(), wrappedCursor.getValuComparator() );
dupsCursor = new SingletonCursor<V>( wrappedTuple.getValue().getSingleton(), wrappedCursor.getValuComparator() );
dupsCursor = new SingletonCursor<V>( values.getSingleton(), wrappedCursor.getValuComparator() );
dupsCursor = new SingletonCursor<V>( values.getSingleton(), wrappedCursor.getValuComparator() );
dupsCursor = new SingletonCursor<V>( values.getSingleton(), wrappedCursor.getValuComparator() );
dupsCursor = new SingletonCursor<V>( values.getSingleton(), wrappedCursor.getValuComparator() );