SDK
SDK Jvm v1.x
2

list #

Returns the list of collections associated to a provided index. The returned list is sorted in alphanumerical order.


:::: tabs ::: tab Java

Arguments #

public CompletableFuture<Map<String, Object>> list(
      final String index) throws NotConnectedException, InternalException
ArgumentsTypeDescription
indexStringIndex name

Returns #

Returns a Map<String, Object> containing the following properties:

PropertyTypeDescription
typeStringTypes of returned collections
(all, realtime or stored)
collectionsArrayList<Object>List of collections
fromIntegerOffset of the first result
sizeIntegerMaximum number of returned results

Each object in the collections array contains the following properties:

PropertyTypeDescription
nameStringCollection name
typeStringCollection type (realtime or stored)

Usage #

<<< ./snippets/list-java.java

::: ::: tab Kotlin

Arguments #

fun list(index: String): CompletableFuture<Map<String, Any?>>
ArgumentsTypeDescription
indexStringIndex name

Returns #

Returns a Map<String, Any?> containing the following properties:

PropertyTypeDescription
typeStringTypes of returned collections
(all, realtime or stored)
collectionsArrayList<Object>List of collections
fromIntOffset of the first result
sizeIntMaximum number of returned results

Each object in the collections array contains the following properties:

PropertyTypeDescription
nameStringCollection name
typeStringCollection type (realtime or stored)

Usage #

<<< ./snippets/list-kotlin.kt

::: ::::