package io.ebeanservice.docstore.api.mapping;
import io.ebean.FetchPath;
import io.ebean.docstore.DocMapping;
public class DocumentMapping implements DocMapping {
protected final String queueId;
protected final String name;
protected final String type;
protected final FetchPath paths;
protected final DocPropertyMapping properties;
protected int shards;
protected int replicas;
public DocumentMapping(String queueId, String name, String type, FetchPath paths, DocPropertyMapping properties, int shards, int replicas) {
this.queueId = queueId;
this.name = name;
this.type = type;
this.paths = paths;
this.properties = properties;
this.shards = shards;
this.replicas = replicas;
}
public void visit(DocPropertyVisitor visitor) {
properties.visit(visitor);
}
public String getQueueId() {
return queueId;
}
public String getName() {
return name;
}
public String getType() {
return type;
}
public FetchPath getPaths() {
return paths;
}
public DocPropertyMapping getProperties() {
return properties;
}
public int getShards() {
return shards;
}
public void setShards(int shards) {
this.shards = shards;
}
public int getReplicas() {
return replicas;
}
public void setReplicas(int replicas) {
this.replicas = replicas;
}
}