public boolean indexShareable ( ) { TypedProperties properties = properties ( ) ; boolean hasRamDirectoryProvider = false ; for ( Object objKey : properties . keySet ( ) ) { String key = ( String ) objKey ; if ( key . endsWith ( DIRECTORY_PROVIDER_KEY ) ) { String directoryImplementationName = String . valueOf ( properties . get ( key ) ) . trim ( ) ; if ( LOCAL_HEAP_DIRECTORY_PROVIDER . equalsIgnoreCase ( directoryImplementationName ) || RAM_DIRECTORY_PROVIDER . equalsIgnoreCase ( directoryImplementationName ) || LOCAL_HEAP_DIRECTORY_PROVIDER_FQN . equals ( directoryImplementationName ) ) { hasRamDirectoryProvider = true ; } else { return true ; } } } return ! hasRamDirectoryProvider ; }
Check if the indexes can be shared . Currently only ram based indexes don t allow any sort of sharing .