Class DocumentMapping
java.lang.Object
io.ebeanservice.docstore.api.mapping.DocumentMapping
- All Implemented Interfaces:
DocMapping
public class DocumentMapping extends Object implements DocMapping
Mapping for a document stored in a doc store (like ElasticSearch).
-
Constructor Summary
Constructors Constructor Description DocumentMapping(String queueId, String name, String type, FetchPath paths, DocPropertyMapping properties, int shards, int replicas) -
Method Summary
Modifier and Type Method Description StringgetName()Return the name.FetchPathgetPaths()Return the document structure as PathProperties.DocPropertyMappinggetProperties()Return the document structure with mapping details.StringgetQueueId()Return the queueId.intgetReplicas()Return the number of replicas.intgetShards()Return the number of shards.StringgetType()Return the type.voidsetReplicas(int replicas)Set the number of replicas.voidsetShards(int shards)Set the number of shards.voidvisit(DocPropertyVisitor visitor)Visit all the properties in the document structure.
-
Constructor Details
-
DocumentMapping
public DocumentMapping(String queueId, String name, String type, FetchPath paths, DocPropertyMapping properties, int shards, int replicas)
-
-
Method Details
-
visit
Visit all the properties in the document structure. -
getQueueId
Return the queueId. -
getName
Return the name. -
getType
Return the type. -
getPaths
Return the document structure as PathProperties. -
getProperties
Return the document structure with mapping details. -
getShards
Return the number of shards. -
setShards
Set the number of shards. -
getReplicas
Return the number of replicas. -
setReplicas
Set the number of replicas.
-