public class DocumentMapping extends Object
Constructor and Description |
---|
DocumentMapping(String queueId,
String name,
String type,
FetchPath paths,
DocPropertyMapping properties,
int shards,
int replicas) |
Modifier and Type | Method and 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.
|
public DocumentMapping(String queueId, String name, String type, FetchPath paths, DocPropertyMapping properties, int shards, int replicas)
public void visit(DocPropertyVisitor visitor)
public String getQueueId()
public DocPropertyMapping getProperties()
public int getShards()
public void setShards(int shards)
public int getReplicas()
public void setReplicas(int replicas)
Copyright © 2019. All rights reserved.