public boolean collectionExists ( final String collectionName ) { Set < String > collectionNames = getCollectionNames ( ) ; for ( final String name : collectionNames ) { if ( name . equalsIgnoreCase ( collectionName ) ) { return true ; } } return false ; }
Checks to see if a collection with a given name exists on a server .