SDK
SDK Java v3.x
2

This SDK is deprecated. We recommend to use the Kuzzle SDK-JVM.
A migration guide is available here

exists #

Checks if a collection exists.


Arguments #

public CompletableFuture<Boolean> exists(
      final String index,
      final String collection)
throws NotConnectedException, InternalException

ArgumentsTypeDescription
index
String
Index
collection
String
Collection

Return #

Returns a boolean.

Usage #

Boolean result = kuzzle
  .getCollectionController()
  .exists("nyc-open-data", "yellow-taxi")
  .get();