diff --git a/pom.xml b/pom.xml index e3be19ef86a..46bcca85964 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ 5.0.0 - 5.0.0-snapshot-1644303 + 5.0.0-snapshot-1646179 auto true onerror @@ -54,7 +54,7 @@ Lucene snapshots - https://download.elasticsearch.org/lucenesnapshots/1644303 + https://download.elasticsearch.org/lucenesnapshots/1646179 diff --git a/src/main/java/org/elasticsearch/common/util/AbstractArray.java b/src/main/java/org/elasticsearch/common/util/AbstractArray.java index 348197fc144..4e35b94e063 100644 --- a/src/main/java/org/elasticsearch/common/util/AbstractArray.java +++ b/src/main/java/org/elasticsearch/common/util/AbstractArray.java @@ -46,7 +46,7 @@ abstract class AbstractArray implements BigArray { protected abstract void doClose(); @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } } diff --git a/src/main/java/org/elasticsearch/index/codec/postingsformat/BloomFilterPostingsFormat.java b/src/main/java/org/elasticsearch/index/codec/postingsformat/BloomFilterPostingsFormat.java index c87565886b5..9f6cc9b42e4 100644 --- a/src/main/java/org/elasticsearch/index/codec/postingsformat/BloomFilterPostingsFormat.java +++ b/src/main/java/org/elasticsearch/index/codec/postingsformat/BloomFilterPostingsFormat.java @@ -130,7 +130,7 @@ public final class BloomFilterPostingsFormat extends PostingsFormat { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.singleton(Accountables.namedAccountable("bloom", ramBytesUsed())); } } @@ -209,7 +209,7 @@ public final class BloomFilterPostingsFormat extends PostingsFormat { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.addAll(Accountables.namedAccountables("field", bloomsByFieldName)); if (delegateFieldsProducer != null) { diff --git a/src/main/java/org/elasticsearch/index/engine/internal/LiveVersionMap.java b/src/main/java/org/elasticsearch/index/engine/internal/LiveVersionMap.java index 5407877c18a..f8f0f6d6517 100644 --- a/src/main/java/org/elasticsearch/index/engine/internal/LiveVersionMap.java +++ b/src/main/java/org/elasticsearch/index/engine/internal/LiveVersionMap.java @@ -251,7 +251,7 @@ class LiveVersionMap implements ReferenceManager.RefreshListener, Accountable { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { // TODO: useful to break down RAM usage here? return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/engine/internal/VersionValue.java b/src/main/java/org/elasticsearch/index/engine/internal/VersionValue.java index b9876805ddf..73574d07c38 100644 --- a/src/main/java/org/elasticsearch/index/engine/internal/VersionValue.java +++ b/src/main/java/org/elasticsearch/index/engine/internal/VersionValue.java @@ -58,7 +58,7 @@ class VersionValue implements Accountable { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } } diff --git a/src/main/java/org/elasticsearch/index/fielddata/ordinals/GlobalOrdinalsIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/ordinals/GlobalOrdinalsIndexFieldData.java index b41a0f6263b..d5995d19095 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/ordinals/GlobalOrdinalsIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/ordinals/GlobalOrdinalsIndexFieldData.java @@ -94,7 +94,7 @@ public abstract class GlobalOrdinalsIndexFieldData extends AbstractIndexComponen } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { // TODO: break down ram usage? return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/ordinals/InternalGlobalOrdinalsIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/ordinals/InternalGlobalOrdinalsIndexFieldData.java index b1c275f07f8..ddb29a97f05 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/ordinals/InternalGlobalOrdinalsIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/ordinals/InternalGlobalOrdinalsIndexFieldData.java @@ -81,7 +81,7 @@ final class InternalGlobalOrdinalsIndexFieldData extends GlobalOrdinalsIndexFiel } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return afd.getChildResources(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/ordinals/MultiOrdinals.java b/src/main/java/org/elasticsearch/index/fielddata/ordinals/MultiOrdinals.java index 2fa794c25da..be418523d54 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/ordinals/MultiOrdinals.java +++ b/src/main/java/org/elasticsearch/index/fielddata/ordinals/MultiOrdinals.java @@ -91,7 +91,7 @@ public class MultiOrdinals extends Ordinals { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("offsets", endOffsets)); resources.add(Accountables.namedAccountable("ordinals", ords)); diff --git a/src/main/java/org/elasticsearch/index/fielddata/ordinals/SinglePackedOrdinals.java b/src/main/java/org/elasticsearch/index/fielddata/ordinals/SinglePackedOrdinals.java index 950820cfce5..8ffad9c2c82 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/ordinals/SinglePackedOrdinals.java +++ b/src/main/java/org/elasticsearch/index/fielddata/ordinals/SinglePackedOrdinals.java @@ -53,7 +53,7 @@ public class SinglePackedOrdinals extends Ordinals { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.singleton(Accountables.namedAccountable("reader", reader)); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicGeoPointFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicGeoPointFieldData.java index df422630ad6..f11bc356bf0 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicGeoPointFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicGeoPointFieldData.java @@ -45,7 +45,7 @@ abstract class AbstractAtomicGeoPointFieldData implements AtomicGeoPointFieldDat } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicOrdinalsFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicOrdinalsFieldData.java index 17afb204798..2ef0f7d7f6a 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicOrdinalsFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicOrdinalsFieldData.java @@ -54,7 +54,7 @@ public abstract class AbstractAtomicOrdinalsFieldData implements AtomicOrdinalsF } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicParentChildFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicParentChildFieldData.java index f2152ddbcd1..7f15dbec5f0 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicParentChildFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/AbstractAtomicParentChildFieldData.java @@ -92,7 +92,7 @@ abstract class AbstractAtomicParentChildFieldData implements AtomicParentChildFi } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/AtomicDoubleFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/AtomicDoubleFieldData.java index b9cf0e47064..b28603d4134 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/AtomicDoubleFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/AtomicDoubleFieldData.java @@ -66,7 +66,7 @@ abstract class AtomicDoubleFieldData implements AtomicNumericFieldData { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/AtomicLongFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/AtomicLongFieldData.java index ddb02ac6de0..fb3e1846946 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/AtomicLongFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/AtomicLongFieldData.java @@ -67,7 +67,7 @@ abstract class AtomicLongFieldData implements AtomicNumericFieldData { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/BinaryDVAtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/BinaryDVAtomicFieldData.java index 9a9d8722563..1182920264d 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/BinaryDVAtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/BinaryDVAtomicFieldData.java @@ -69,7 +69,7 @@ public class BinaryDVAtomicFieldData implements AtomicFieldData { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/BinaryDVNumericIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/BinaryDVNumericIndexFieldData.java index bfff3246e48..10d8e93b514 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/BinaryDVNumericIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/BinaryDVNumericIndexFieldData.java @@ -85,7 +85,7 @@ public class BinaryDVNumericIndexFieldData extends DocValuesIndexFieldData imple } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } @@ -99,7 +99,7 @@ public class BinaryDVNumericIndexFieldData extends DocValuesIndexFieldData imple } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/BytesBinaryDVAtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/BytesBinaryDVAtomicFieldData.java index 1620a0446e9..c6a54b8f33f 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/BytesBinaryDVAtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/BytesBinaryDVAtomicFieldData.java @@ -48,7 +48,7 @@ final class BytesBinaryDVAtomicFieldData implements AtomicFieldData { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/DoubleArrayIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/DoubleArrayIndexFieldData.java index dda5782f769..d04a54d1ded 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/DoubleArrayIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/DoubleArrayIndexFieldData.java @@ -108,7 +108,7 @@ public class DoubleArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("ordinals", build)); resources.add(Accountables.namedAccountable("values", finalValues)); @@ -134,7 +134,7 @@ public class DoubleArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("ordinals", build)); resources.add(Accountables.namedAccountable("values", finalValues)); @@ -163,7 +163,7 @@ public class DoubleArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("values", sValues)); resources.add(Accountables.namedAccountable("missing bitset", set)); diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/FSTBytesAtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/FSTBytesAtomicFieldData.java index 350cc5ea2cb..7bf8f53fc82 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/FSTBytesAtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/FSTBytesAtomicFieldData.java @@ -69,7 +69,7 @@ public class FSTBytesAtomicFieldData extends AbstractAtomicOrdinalsFieldData { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("ordinals", ordinals)); if (fst != null) { diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/FloatArrayIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/FloatArrayIndexFieldData.java index c3a1a087642..d6377099b5f 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/FloatArrayIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/FloatArrayIndexFieldData.java @@ -106,7 +106,7 @@ public class FloatArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("ordinals", build)); resources.add(Accountables.namedAccountable("values", finalValues)); @@ -132,7 +132,7 @@ public class FloatArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("ordinals", build)); resources.add(Accountables.namedAccountable("values", finalValues)); @@ -161,7 +161,7 @@ public class FloatArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("values", sValues)); resources.add(Accountables.namedAccountable("missing bitset", set)); diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointBinaryDVAtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointBinaryDVAtomicFieldData.java index 29a112f4b5c..e7175c4a945 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointBinaryDVAtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointBinaryDVAtomicFieldData.java @@ -49,7 +49,7 @@ final class GeoPointBinaryDVAtomicFieldData extends AbstractAtomicGeoPointFieldD } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointCompressedAtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointCompressedAtomicFieldData.java index 90effc9eafa..5e00946cd9b 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointCompressedAtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointCompressedAtomicFieldData.java @@ -68,7 +68,7 @@ public abstract class GeoPointCompressedAtomicFieldData extends AbstractAtomicGe } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("latitude", lat)); resources.add(Accountables.namedAccountable("longitude", lon)); @@ -142,7 +142,7 @@ public abstract class GeoPointCompressedAtomicFieldData extends AbstractAtomicGe } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("latitude", lat)); resources.add(Accountables.namedAccountable("longitude", lon)); diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointDoubleArrayAtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointDoubleArrayAtomicFieldData.java index 84e15c87cc6..1b57ab3b62b 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointDoubleArrayAtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/GeoPointDoubleArrayAtomicFieldData.java @@ -64,7 +64,7 @@ public abstract class GeoPointDoubleArrayAtomicFieldData extends AbstractAtomicG } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("latitude", lat)); resources.add(Accountables.namedAccountable("longitude", lon)); @@ -133,7 +133,7 @@ public abstract class GeoPointDoubleArrayAtomicFieldData extends AbstractAtomicG } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("latitude", lat)); resources.add(Accountables.namedAccountable("longitude", lon)); diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/IndexIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/IndexIndexFieldData.java index 06cb30e7c20..27ba0a3b1ba 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/IndexIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/IndexIndexFieldData.java @@ -58,7 +58,7 @@ public class IndexIndexFieldData extends AbstractIndexOrdinalsFieldData { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/NumericDVIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/NumericDVIndexFieldData.java index 17fbf4425cc..95a786f54a5 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/NumericDVIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/NumericDVIndexFieldData.java @@ -57,7 +57,7 @@ public class NumericDVIndexFieldData extends DocValuesIndexFieldData implements } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } }; diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/PackedArrayIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/PackedArrayIndexFieldData.java index 768dfc051b6..66b0386fc35 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/PackedArrayIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/PackedArrayIndexFieldData.java @@ -130,7 +130,7 @@ public class PackedArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("ordinals", build)); resources.add(Accountables.namedAccountable("values", values)); @@ -213,7 +213,7 @@ public class PackedArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("values", sValues)); if (docsWithValues != null) { @@ -249,7 +249,7 @@ public class PackedArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("values", pagedValues)); if (docsWithValues != null) { @@ -270,7 +270,7 @@ public class PackedArrayIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("ordinals", build)); resources.add(Accountables.namedAccountable("values", values)); diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/PagedBytesAtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/PagedBytesAtomicFieldData.java index ccc7b96c4bf..f7ca0ec507c 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/PagedBytesAtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/PagedBytesAtomicFieldData.java @@ -59,7 +59,7 @@ public class PagedBytesAtomicFieldData extends AbstractAtomicOrdinalsFieldData { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); resources.add(Accountables.namedAccountable("ordinals", ordinals)); resources.add(Accountables.namedAccountable("term bytes", bytes)); diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildAtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildAtomicFieldData.java index f3900c7a819..1329cfd752f 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildAtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildAtomicFieldData.java @@ -53,7 +53,7 @@ public class ParentChildAtomicFieldData extends AbstractAtomicParentChildFieldDa } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { // TODO: should we break down by type? // the current 'map' does not impl java.util.Map so we cant use Accountables.namedAccountables... return Collections.emptyList(); diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildIndexFieldData.java index 057cdf98740..87da44b8de6 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/ParentChildIndexFieldData.java @@ -368,7 +368,7 @@ public class ParentChildIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { // TODO: is this really the best? return Collections.emptyList(); } @@ -395,7 +395,7 @@ public class ParentChildIndexFieldData extends AbstractIndexFieldData getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/SortedNumericDVIndexFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/SortedNumericDVIndexFieldData.java index b95798a52c8..02f32ca0f83 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/SortedNumericDVIndexFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/SortedNumericDVIndexFieldData.java @@ -120,7 +120,7 @@ public class SortedNumericDVIndexFieldData extends DocValuesIndexFieldData imple } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } } @@ -169,7 +169,7 @@ public class SortedNumericDVIndexFieldData extends DocValuesIndexFieldData imple } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } } @@ -254,7 +254,7 @@ public class SortedNumericDVIndexFieldData extends DocValuesIndexFieldData imple } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } } diff --git a/src/main/java/org/elasticsearch/index/fielddata/plain/SortedSetDVBytesAtomicFieldData.java b/src/main/java/org/elasticsearch/index/fielddata/plain/SortedSetDVBytesAtomicFieldData.java index 873a0e90f32..d339f5bf4c7 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/plain/SortedSetDVBytesAtomicFieldData.java +++ b/src/main/java/org/elasticsearch/index/fielddata/plain/SortedSetDVBytesAtomicFieldData.java @@ -63,7 +63,7 @@ public final class SortedSetDVBytesAtomicFieldData extends AbstractAtomicOrdinal } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/translog/Translog.java b/src/main/java/org/elasticsearch/index/translog/Translog.java index e42bd7c625a..2915547c8fa 100644 --- a/src/main/java/org/elasticsearch/index/translog/Translog.java +++ b/src/main/java/org/elasticsearch/index/translog/Translog.java @@ -173,7 +173,7 @@ public interface Translog extends IndexShardComponent, Closeable, Accountable { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java b/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java index 1d57a79e328..9cb15901577 100644 --- a/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java +++ b/src/main/java/org/elasticsearch/index/translog/fs/FsTranslog.java @@ -178,7 +178,7 @@ public class FsTranslog extends AbstractIndexShardComponent implements Translog } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/indices/cache/query/IndicesQueryCache.java b/src/main/java/org/elasticsearch/indices/cache/query/IndicesQueryCache.java index 0f506c79814..dfb88c19afc 100644 --- a/src/main/java/org/elasticsearch/indices/cache/query/IndicesQueryCache.java +++ b/src/main/java/org/elasticsearch/indices/cache/query/IndicesQueryCache.java @@ -284,7 +284,7 @@ public class IndicesQueryCache extends AbstractComponent implements RemovalListe } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { // TODO: more detailed ram usage? return Collections.emptyList(); } diff --git a/src/main/java/org/elasticsearch/search/suggest/completion/AnalyzingCompletionLookupProvider.java b/src/main/java/org/elasticsearch/search/suggest/completion/AnalyzingCompletionLookupProvider.java index cd4a91a8698..c1fe849c25f 100644 --- a/src/main/java/org/elasticsearch/search/suggest/completion/AnalyzingCompletionLookupProvider.java +++ b/src/main/java/org/elasticsearch/search/suggest/completion/AnalyzingCompletionLookupProvider.java @@ -300,7 +300,7 @@ public class AnalyzingCompletionLookupProvider extends CompletionLookupProvider } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Accountables.namedAccountables("field", lookupMap); } }; @@ -360,7 +360,7 @@ public class AnalyzingCompletionLookupProvider extends CompletionLookupProvider } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { if (fst != null) { return Collections.singleton(Accountables.namedAccountable("fst", fst)); } else { diff --git a/src/main/java/org/elasticsearch/search/suggest/completion/Completion090PostingsFormat.java b/src/main/java/org/elasticsearch/search/suggest/completion/Completion090PostingsFormat.java index fc9844dbc74..d401189b0c9 100644 --- a/src/main/java/org/elasticsearch/search/suggest/completion/Completion090PostingsFormat.java +++ b/src/main/java/org/elasticsearch/search/suggest/completion/Completion090PostingsFormat.java @@ -218,7 +218,7 @@ public class Completion090PostingsFormat extends PostingsFormat { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { List resources = new ArrayList<>(); if (lookupFactory != null) { resources.add(Accountables.namedAccountable("lookup", lookupFactory)); diff --git a/src/test/java/org/elasticsearch/search/suggest/completion/AnalyzingCompletionLookupProviderV1.java b/src/test/java/org/elasticsearch/search/suggest/completion/AnalyzingCompletionLookupProviderV1.java index 651488d674d..1add497f92d 100644 --- a/src/test/java/org/elasticsearch/search/suggest/completion/AnalyzingCompletionLookupProviderV1.java +++ b/src/test/java/org/elasticsearch/search/suggest/completion/AnalyzingCompletionLookupProviderV1.java @@ -289,7 +289,7 @@ public class AnalyzingCompletionLookupProviderV1 extends CompletionLookupProvide } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Accountables.namedAccountables("field", lookupMap); } }; diff --git a/src/test/java/org/elasticsearch/test/cache/recycler/MockBigArrays.java b/src/test/java/org/elasticsearch/test/cache/recycler/MockBigArrays.java index 89f4c22713a..2545837b3e1 100644 --- a/src/test/java/org/elasticsearch/test/cache/recycler/MockBigArrays.java +++ b/src/test/java/org/elasticsearch/test/cache/recycler/MockBigArrays.java @@ -333,7 +333,7 @@ public class MockBigArrays extends BigArrays { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.singleton(Accountables.namedAccountable("delegate", in)); } } @@ -378,7 +378,7 @@ public class MockBigArrays extends BigArrays { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.singleton(Accountables.namedAccountable("delegate", in)); } } @@ -423,7 +423,7 @@ public class MockBigArrays extends BigArrays { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.singleton(Accountables.namedAccountable("delegate", in)); } @@ -469,7 +469,7 @@ public class MockBigArrays extends BigArrays { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.singleton(Accountables.namedAccountable("delegate", in)); } } @@ -514,7 +514,7 @@ public class MockBigArrays extends BigArrays { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.singleton(Accountables.namedAccountable("delegate", in)); } } @@ -549,7 +549,7 @@ public class MockBigArrays extends BigArrays { } @Override - public Iterable getChildResources() { + public Iterable getChildResources() { return Collections.singleton(Accountables.namedAccountable("delegate", in)); } }