@Test public void testHasIndex() { Schema schema = Schema.defaultSchema(); schema.index("some-index"); assertTrue(schema.hasIndex("some-index")); assertFalse(schema.hasIndex("nonexistent-index")); }
public boolean hasIndex(String indexName) { return this.indexes.containsKey(indexName); }
Schema { public boolean hasIndex(String indexName) { return this.indexes.containsKey(indexName); } }
Schema { public boolean hasIndex(String indexName) { return this.indexes.containsKey(indexName); } private  Schema(); }
Schema { public boolean hasIndex(String indexName) { return this.indexes.containsKey(indexName); } private  Schema(); static Schema defaultSchema(); Index index(String name); Index index(String name, IndexOptions options); Index index(String name, IndexOptions options, long shardWidth); Index index(String name, Map<String, Object> options); Index index(Index other); boolean hasIndex(String indexName); Schema diff(Schema other); Map<String, Index> getIndexes(); @Override boolean equals(Object obj); @Override int hashCode(); }
Schema { public boolean hasIndex(String indexName) { return this.indexes.containsKey(indexName); } private  Schema(); static Schema defaultSchema(); Index index(String name); Index index(String name, IndexOptions options); Index index(String name, IndexOptions options, long shardWidth); Index index(String name, Map<String, Object> options); Index index(Index other); boolean hasIndex(String indexName); Schema diff(Schema other); Map<String, Index> getIndexes(); @Override boolean equals(Object obj); @Override int hashCode();  }