Class DocumentMapping
- java.lang.Object
-
- io.ebeanservice.docstore.api.mapping.DocumentMapping
-
public class DocumentMapping extends Object
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
All Methods Instance Methods Concrete Methods 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 Detail
-
DocumentMapping
public DocumentMapping(String queueId, String name, String type, FetchPath paths, DocPropertyMapping properties, int shards, int replicas)
-
-
Method Detail
-
visit
public void visit(DocPropertyVisitor visitor)
Visit all the properties in the document structure.
-
getQueueId
public String getQueueId()
Return the queueId.
-
getProperties
public DocPropertyMapping getProperties()
Return the document structure with mapping details.
-
getShards
public int getShards()
Return the number of shards.
-
setShards
public void setShards(int shards)
Set the number of shards.
-
getReplicas
public int getReplicas()
Return the number of replicas.
-
setReplicas
public void setReplicas(int replicas)
Set the number of replicas.
-
-