SDK
SDK Java v3.x
2

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

getSpecifications #

Returns the validation specifications associated to the given index and collection.


Copied to clipboard!
  public CompletableFuture<ConcurrentHashMap<String, Object>> getSpecifications(
      final String index,
      final String collection)

Arguments Type Description
index
String
Index name
collection
String
Collection name

Returns #

Returns a ConcurrentHashMap<String, Object> representing the collection specifications.

Usage #

Copied to clipboard!
ConcurrentHashMap<String, Object> result = kuzzle
  .getCollectionController()
  .getSpecifications("nyc-open-data", "yellow-taxi")
  .get();
/*
  {
    collection="yellow-taxi",
    index="nyc-open-data",
    validation={
      fields={
        age={
          defaultValue=42,
          mandatory=true,
          type="integer"
        }
      },
      strict=true
    }
  }
*/