io.zulia.server.index.ShardReaderManager Maven / Gradle / Ivy
package io.zulia.server.index;
import org.apache.lucene.search.ReferenceManager;
import java.io.IOException;
public class ShardReaderManager extends ReferenceManager {
public ShardReaderManager(ShardReader initial) {
this.current = initial;
}
@Override
protected void decRef(ShardReader reference) throws IOException {
reference.decRef();
}
@Override
protected ShardReader refreshIfNeeded(ShardReader referenceToRefresh) throws IOException {
return referenceToRefresh.refreshIfNeeded();
}
@Override
protected boolean tryIncRef(ShardReader reference) throws IOException {
return reference.tryIncRef();
}
@Override
protected int getRefCount(ShardReader reference) {
return reference.getRefCount();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy