public final ManagedIndex getManagedIndex ( String indexName , String workspaceName ) { logger ( ) . trace ( "Looking for managed index '{0}' in '{1}' provider in workspace '{2}'" , indexName , getName ( ) , workspaceName ) ; Map < String , AtomicIndex > byWorkspaceNames = providedIndexesByWorkspaceNameByIndexName . get ( indexName ) ; if ( byWorkspaceNames == null ) { return null ; } AtomicIndex atomicIndex = byWorkspaceNames . get ( workspaceName ) ; return atomicIndex == null ? null : atomicIndex . managed ( ) ; }
Get the managed index with the given name and applicable for the given workspace .