public static interface LeafReader.CoreClosedListener
LeafReader impl has the ability to share
resources across instances that might only vary through
deleted documents and doc values updates, then this listener
will only be called when the shared core is closed.
Otherwise, this listener will be called when this reader is
This is typically useful to manage per-segment caches: when
the listener is called, it is safe to evict this reader from
any caches keyed on
|Modifier and Type||Method and Description|
Invoked when the shared core of the original
void onClose(Object ownerCoreCacheKey) throws IOException
SegmentReaderhas closed. The provided
ownerCoreCacheKeywill be the same key as the one returned by
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.