From 09cc70b8c91c25ebf50f592fd9f8f52ac4e67028 Mon Sep 17 00:00:00 2001 From: uboness Date: Tue, 22 Jan 2013 14:45:09 +0100 Subject: [PATCH] added predefined empty implementation for all atomic field datas --- .../index/fielddata/AtomicFieldData.java | 1 + .../fielddata/AtomicGeoPointFieldData.java | 3 +- .../fielddata/AtomicNumericFieldData.java | 1 + .../fielddata/AtomicOrdinalFieldData.java | 1 + .../index/fielddata/ByteValues.java | 39 +++ .../index/fielddata/BytesValues.java | 47 ++++ .../index/fielddata/DoubleValues.java | 39 +++ .../index/fielddata/FloatValues.java | 39 +++ .../index/fielddata/GeoPointValues.java | 56 +++- .../index/fielddata/HashedBytesValues.java | 36 +++ .../index/fielddata/IntValues.java | 39 +++ .../index/fielddata/LongValues.java | 39 +++ .../index/fielddata/OrdinalsBytesValues.java | 31 +++ .../fielddata/OrdinalsHashedBytesValues.java | 25 ++ .../index/fielddata/OrdinalsStringValues.java | 20 ++ .../index/fielddata/ScriptDocValues.java | 14 + .../index/fielddata/ShortValues.java | 39 +++ .../index/fielddata/StringValues.java | 34 +++ .../index/fielddata/ordinals/Ordinals.java | 3 + .../plain/ByteArrayAtomicFieldData.java | 74 ++++++ .../plain/ByteArrayIndexFieldData.java | 2 +- .../ConcreteBytesRefAtomicFieldData.java | 54 +++- .../plain/ConcreteBytesRefIndexFieldData.java | 3 +- .../plain/DoubleArrayAtomicFieldData.java | 74 ++++++ .../plain/DoubleArrayIndexFieldData.java | 2 +- .../plain/FloatArrayAtomicFieldData.java | 74 ++++++ .../plain/FloatArrayIndexFieldData.java | 2 +- .../GeoPointDoubleArrayAtomicFieldData.java | 56 +++- .../GeoPointDoubleArrayIndexFieldData.java | 4 +- .../plain/IntArrayAtomicFieldData.java | 75 ++++++ .../plain/IntArrayIndexFieldData.java | 2 +- .../plain/LongArrayAtomicFieldData.java | 74 ++++++ .../plain/LongArrayIndexFieldData.java | 2 +- .../plain/PagedBytesAtomicFieldData.java | 59 ++++- .../plain/PagedBytesIndexFieldData.java | 9 +- .../plain/ShortArrayAtomicFieldData.java | 74 ++++++ .../plain/ShortArrayIndexFieldData.java | 2 +- .../fielddata/NumericFieldDataTests.java | 242 ++++++++++++++++++ .../index/fielddata/StringFieldDataTests.java | 121 +++++++++ 39 files changed, 1484 insertions(+), 27 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/fielddata/AtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/AtomicFieldData.java index 1648a320397..c2681fab839 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/AtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/AtomicFieldData.java @@ -63,4 +63,5 @@ public interface AtomicFieldData