public IndexInput openInput(String name, int bufferSize) throws IOException { return openInput(name); } }
public IndexInput openInput(String name, int bufferSize) throws IOException { return openInput(name); } }
@Override public IndexInputSlicer createSlicer(String name, IOContext context) throws IOException { final MMapIndexInput full = (MMapIndexInput) openInput(name, context); return new IndexInputSlicer() { @Override public IndexInput openSlice(String sliceDescription, long offset, long length) throws IOException { ensureOpen(); return full.slice(sliceDescription, offset, length); } @Override public IndexInput openFullSlice() throws IOException { ensureOpen(); return full.clone(); } @Override public void close() throws IOException { full.close(); } }; }