SDK
SDK Java v3.x
2

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

getMapping #

Returns the collection mapping.


public CompletableFuture<ConcurrentHashMap<String, Object>> getMapping(
      final String index,
      final String collection) throws NotConnectedException, InternalException

ArgumentsTypeDescription
index
String
Index name
collection
String
Collection name

Returns #

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

Usage #

ConcurrentHashMap<String, Object> result = kuzzle
  .getCollectionController()
  .getMapping("nyc-open-data", "yellow-taxi")
  .get();
/*
{
  _meta={
    schema={},
    allowForm=false
  },
  dynamic=true,
  properties={
    key={
      type=text,
        fields={
          keyword={
          ignore_above=256,
          type=keyword
          }
        }
      }
    }
  }
*/