All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.frekele.elasticsearch.mapping.ObjectMapping Maven / Gradle / Ivy

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