mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
IdCache shouldn't implement Iterable
This commit is contained in:
parent
38f038f899
commit
48c63c137a
@ -32,7 +32,7 @@ import java.util.List;
|
||||
* This id cache contains only the ids of parent documents, loaded via the uid or parent field.
|
||||
* This name IdCache is misleading, parentIdCache would be a better name.
|
||||
*/
|
||||
public interface IdCache extends IndexComponent, CloseableComponent, Iterable<IdReaderCache> {
|
||||
public interface IdCache extends IndexComponent, CloseableComponent {
|
||||
|
||||
// we need to "inject" the index service to not create cyclic dep
|
||||
void setIndexService(IndexService indexService);
|
||||
|
@ -105,12 +105,6 @@ public class SimpleIdCache extends AbstractIndexComponent implements IdCache, Se
|
||||
return idReaders.get(reader.getCoreCacheKey());
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
@Override
|
||||
public Iterator<IdReaderCache> iterator() {
|
||||
return (Iterator<IdReaderCache>) idReaders.values();
|
||||
}
|
||||
|
||||
@SuppressWarnings({"StringEquality"})
|
||||
@Override
|
||||
public void refresh(List<AtomicReaderContext> atomicReaderContexts) throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user