All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.zulia.server.index.ShardReaderManager Maven / Gradle / Ivy

There is a newer version: 1.6.4
Show newest version
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