SDK
SDK Java v3.x
2

# getMapping

Returns the collection mapping.


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

Arguments Type Description
index
String
Index name
collection
String
Collection name

# Returns

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

# Usage

Copied to clipboard!
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
          }
        }
      }
    }
  }
*/