diff --git a/server/src/main/java/org/elasticsearch/index/fielddata/IndexFieldData.java b/server/src/main/java/org/elasticsearch/index/fielddata/IndexFieldData.java index 92532e3e9d7..d33c8a9067c 100644 --- a/server/src/main/java/org/elasticsearch/index/fielddata/IndexFieldData.java +++ b/server/src/main/java/org/elasticsearch/index/fielddata/IndexFieldData.java @@ -253,7 +253,7 @@ public interface IndexFieldData { IndexFieldData loadGlobal(DirectoryReader indexReader); - IndexFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception; + IndexFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception; } } diff --git a/server/src/main/java/org/elasticsearch/index/fielddata/IndexFieldDataCache.java b/server/src/main/java/org/elasticsearch/index/fielddata/IndexFieldDataCache.java index 40db7592a54..0808af4a08b 100644 --- a/server/src/main/java/org/elasticsearch/index/fielddata/IndexFieldDataCache.java +++ b/server/src/main/java/org/elasticsearch/index/fielddata/IndexFieldDataCache.java @@ -69,7 +69,7 @@ public interface IndexFieldDataCache { @SuppressWarnings("unchecked") public > IFD load(DirectoryReader indexReader, IFD indexFieldData) throws Exception { - return (IFD) indexFieldData.localGlobalDirect(indexReader); + return (IFD) indexFieldData.loadGlobalDirect(indexReader); } @Override diff --git a/server/src/main/java/org/elasticsearch/index/fielddata/IndexOrdinalsFieldData.java b/server/src/main/java/org/elasticsearch/index/fielddata/IndexOrdinalsFieldData.java index b81832f1385..320aecdb651 100644 --- a/server/src/main/java/org/elasticsearch/index/fielddata/IndexOrdinalsFieldData.java +++ b/server/src/main/java/org/elasticsearch/index/fielddata/IndexOrdinalsFieldData.java @@ -40,7 +40,7 @@ public interface IndexOrdinalsFieldData extends IndexFieldData.Global { ElasticsearchDirectoryReader.addReaderCloseListener(indexReader, IndexFieldCache.this); Collections.addAll(k.listeners, this.listeners); - final Accountable ifd = (Accountable) indexFieldData.localGlobalDirect(indexReader); + final Accountable ifd = (Accountable) indexFieldData.loadGlobalDirect(indexReader); for (Listener listener : k.listeners) { try { listener.onCache(shardId, fieldName, ifd); diff --git a/server/src/test/java/org/elasticsearch/index/fielddata/FieldDataCacheTests.java b/server/src/test/java/org/elasticsearch/index/fielddata/FieldDataCacheTests.java index 006148b7e57..d631a7edf5e 100644 --- a/server/src/test/java/org/elasticsearch/index/fielddata/FieldDataCacheTests.java +++ b/server/src/test/java/org/elasticsearch/index/fielddata/FieldDataCacheTests.java @@ -115,7 +115,7 @@ public class FieldDataCacheTests extends ESTestCase { public > IFD load(DirectoryReader indexReader, IFD indexFieldData) throws Exception { cachedGlobally++; - return (IFD) indexFieldData.localGlobalDirect(indexReader); + return (IFD) indexFieldData.loadGlobalDirect(indexReader); } @Override diff --git a/x-pack/plugin/mapper-flattened/src/main/java/org/elasticsearch/xpack/flattened/mapper/FlatObjectFieldMapper.java b/x-pack/plugin/mapper-flattened/src/main/java/org/elasticsearch/xpack/flattened/mapper/FlatObjectFieldMapper.java index 3c0f728be7b..b6efa051a7c 100644 --- a/x-pack/plugin/mapper-flattened/src/main/java/org/elasticsearch/xpack/flattened/mapper/FlatObjectFieldMapper.java +++ b/x-pack/plugin/mapper-flattened/src/main/java/org/elasticsearch/xpack/flattened/mapper/FlatObjectFieldMapper.java @@ -393,8 +393,8 @@ public final class FlatObjectFieldMapper extends DynamicKeyFieldMapper { } @Override - public IndexOrdinalsFieldData localGlobalDirect(DirectoryReader indexReader) throws Exception { - IndexOrdinalsFieldData fieldData = delegate.localGlobalDirect(indexReader); + public IndexOrdinalsFieldData loadGlobalDirect(DirectoryReader indexReader) throws Exception { + IndexOrdinalsFieldData fieldData = delegate.loadGlobalDirect(indexReader); return new KeyedFlatObjectFieldData(key, fieldData); } diff --git a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/FieldDataCacheWithFieldSubsetReaderTests.java b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/FieldDataCacheWithFieldSubsetReaderTests.java index 97a077a4e18..bdab634175a 100644 --- a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/FieldDataCacheWithFieldSubsetReaderTests.java +++ b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authz/accesscontrol/FieldDataCacheWithFieldSubsetReaderTests.java @@ -164,7 +164,7 @@ public class FieldDataCacheWithFieldSubsetReaderTests extends ESTestCase { public > IFD load(DirectoryReader indexReader, IFD indexFieldData) throws Exception { topLevelBuilds++; - return (IFD) indexFieldData.localGlobalDirect(indexReader); + return (IFD) indexFieldData.loadGlobalDirect(indexReader); } @Override