You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
418 B
Java
16 lines
418 B
Java
package eu.eudat.elastic.entities;
|
|
|
|
import org.elasticsearch.common.document.DocumentField;
|
|
import org.elasticsearch.common.xcontent.XContentBuilder;
|
|
|
|
import java.io.IOException;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Created by ikalyvas on 7/5/2018.
|
|
*/
|
|
public interface ElasticEntity<T> {
|
|
XContentBuilder toElasticEntity(XContentBuilder builder) throws IOException;
|
|
T fromElasticEntity(Map<String, Object> fields);
|
|
}
|