diff --git a/src/main/java/org/elasticsearch/index/fielddata/AbstractAtomicNumericFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/AbstractAtomicNumericFieldData.java index 1bf5fb03fa6..0c569bfbfa0 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/AbstractAtomicNumericFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/AbstractAtomicNumericFieldData.java @@ -46,21 +46,7 @@ public abstract class AbstractAtomicNumericFieldData implements AtomicNumericFie if (isFloat) { final DoubleValues values = getDoubleValues(); return new BytesValues(values.isMultiValued()) { - @Override - public boolean hasValue(int docId) { - return values.hasValue(docId); - } - @Override - public BytesRef getValue(int docId) { - if (values.hasValue(docId)) { - scratch.copyChars(Double.toString(values.getValue(docId))); - } else { - scratch.length = 0; - } - return scratch; - } - @Override public int setDocument(int docId) { this.docId = docId; @@ -77,21 +63,6 @@ public abstract class AbstractAtomicNumericFieldData implements AtomicNumericFie final LongValues values = getLongValues(); return new BytesValues(values.isMultiValued()) { - @Override - public boolean hasValue(int docId) { - return values.hasValue(docId); - } - - @Override - public BytesRef getValue(int docId) { - if (values.hasValue(docId)) { - scratch.copyChars(Long.toString(values.getValue(docId))); - } else { - scratch.length = 0; - } - return scratch; - } - @Override public int setDocument(int docId) { this.docId = docId; diff --git a/src/main/java/org/elasticsearch/index/fielddata/AtomicGeoPointFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/AtomicGeoPointFieldData.java index dff3cfe9b4a..2d5ec276102 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/AtomicGeoPointFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/AtomicGeoPointFieldData.java @@ -34,23 +34,6 @@ public abstract class AtomicGeoPointFieldData