
org.frekele.elasticsearch.mapping.ObjectMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-mapping-builder Show documentation
Show all versions of elasticsearch-mapping-builder Show documentation
Elasticsearch Java Mapping Builder.
The newest version!
package org.frekele.elasticsearch.mapping;
import org.elasticsearch.common.xcontent.XContentBuilder;
import java.io.IOException;
import java.io.Serializable;
/**
* Elastic Mapping Builder, XContentBuilder.
*
* @author frekele - Leandro Kersting de Freitas
*/
public class ObjectMapping implements Serializable {
private static final long serialVersionUID = 1L;
private XContentBuilder mapping;
public ObjectMapping(XContentBuilder mapping) {
this.mapping = mapping;
}
public XContentBuilder getContent() throws IOException {
return this.mapping;
}
public String getContentAsString() throws IOException {
return this.getContent().string();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy