Remove unused methods in ValueType
The removed methods seem unused in the rest of the project.
@@ -77,10 +77,6 @@ public enum ValueType implements Writeable {
}
},
GEOPOINT((byte) 8, "geo_point", "geo_point", ValuesSourceType.GEOPOINT, IndexGeoPointFieldData.class, DocValueFormat.GEOHASH) {
- @Override
- public boolean isGeoPoint() {
- return true;
- }
},
BOOLEAN((byte) 9, "boolean", "boolean", ValuesSourceType.NUMERIC, IndexNumericFieldData.class, DocValueFormat.BOOLEAN) {
@Override
@@ -108,10 +104,6 @@ public enum ValueType implements Writeable {
this.defaultFormat = defaultFormat;
}
- public String description() {
- return description;
- }
-
public String getPreferredName() {
return preferredName;
}
@@ -120,10 +112,6 @@ public enum ValueType implements Writeable {
return valuesSourceType;
}
- public boolean compatibleWith(IndexFieldData fieldData) {
- return fieldDataType.isInstance(fieldData);
- }
-
public boolean isA(ValueType valueType) {
return valueType.valuesSourceType == valuesSourceType &&
valueType.fieldDataType.isAssignableFrom(fieldDataType);
@@ -145,10 +133,6 @@ public enum ValueType implements Writeable {
return false;
}
- public boolean isGeoPoint() {
- return false;
- }
-
public static ValueType resolveForScript(String type) {
switch (type) {
case "string": return STRING;
