org.nlpcn.es4sql.domain.KVValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-sql Show documentation
Show all versions of elasticsearch-sql Show documentation
Query elasticsearch using SQL
The newest version!
package org.nlpcn.es4sql.domain;
public class KVValue implements Cloneable {
public String key;
public Object value;
//zhongshu-comment 看样子,应该存在只有value没有key的情况
public KVValue(Object value) {
this.value = value;
}
public KVValue(String key, Object value) {
if (key != null) {
this.key = key.replace("'", "");
}
this.value = value;
}
@Override
public String toString() {
//zhongshu-comment 看样子,应该存在只有value没有key的情况
if (key == null) {
return value.toString();
} else {
return key + "=" + value;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy