exists #
Checks if a collection exists.
Arguments #
Copied to clipboard!
public CompletableFuture<Boolean> exists(
final String index,
final String collection)
throws NotConnectedException, InternalException
Arguments | Type | Description |
---|---|---|
index | String | Index |
collection | String | Collection |
Return #
Returns a boolean.
Usage #
Copied to clipboard!
Boolean result = kuzzle
.getCollectionController()
.exists("nyc-open-data", "yellow-taxi")
.get();
Arguments #
Copied to clipboard!
fun exists(
index: String,
collection: String
): CompletableFuture<Boolean>
Arguments | Type | Description |
---|---|---|
index | String | Index |
collection | String | Collection |
Return #
Returns a boolean.
Usage #
Copied to clipboard!
val result = kuzzle
.collectionController
.exists("nyc-open-data", "yellow-taxi")
.get()
Edit this page on Github (opens new window)