java.lang.Object
io.ebeanservice.docstore.api.mapping.DocumentMapping
- All Implemented Interfaces:
DocMapping
Mapping for a document stored in a doc store (like ElasticSearch).
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentMapping(String queueId, String name, String type, FetchPath paths, DocPropertyMapping properties, int shards, int replicas) -
Method Summary
Modifier and TypeMethodDescriptionname()Return the name.paths()Return the document structure as PathProperties.Return the document structure with mapping details.queueId()Return the queueId.intreplicas()Return the number of replicas.voidreplicas(int replicas) Set the number of replicas.intshards()Return the number of shards.voidshards(int shards) Set the number of shards.type()Return the type.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. -
queueId
Return the queueId. -
name
Return the name. -
type
Return the type. -
paths
Return the document structure as PathProperties. -
properties
Return the document structure with mapping details. -
shards
Return the number of shards. -
shards
Set the number of shards. -
replicas
Return the number of replicas. -
replicas
Set the number of replicas.
-