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 String
getName()
Return the name.FetchPath
getPaths()
Return the document structure as PathProperties.DocPropertyMapping
getProperties()
Return the document structure with mapping details.String
getQueueId()
Return the queueId.int
getReplicas()
Return the number of replicas.int
getShards()
Return the number of shards.String
getType()
Return the type.void
setReplicas(int replicas)
Set the number of replicas.void
setShards(int shards)
Set the number of shards.void
visit(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.
-
-