Java Code Examples for org.apache.lucene.store.BufferedIndexInput

The following examples show how to use org.apache.lucene.store.BufferedIndexInput. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
TermInfosReader(Directory dir, String seg, FieldInfos fis)
     throws CorruptIndexException, IOException {
  this(dir, seg, fis, BufferedIndexInput.BUFFER_SIZE);
}
 
Example 2
Source Project: Elasticsearch   Source File: LZFCompressedIndexInput.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public IndexInput slice(String description, long offset, long length) throws IOException {
    return BufferedIndexInput.wrap(description, this, offset, length);
}
 
Example 3
Source Project: lucene-solr   Source File: TestFieldsReader.java    License: Apache License 2.0 4 votes vote down vote up
private FaultyIndexInput(AtomicBoolean doFail, IndexInput delegate) {
  super("FaultyIndexInput(" + delegate + ")", BufferedIndexInput.BUFFER_SIZE);
  this.delegate = delegate;
  this.doFail = doFail;
}
 
Example 4
Source Project: lucene-solr   Source File: CustomBufferedIndexInput.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public IndexInput slice(String sliceDescription, long offset, long length) throws IOException {
  return BufferedIndexInput.wrap(sliceDescription, this, offset, length);
}
 
Example 5
Source Project: clue   Source File: CustomBufferedIndexInput.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public IndexInput slice(String sliceDescription, long offset, long length) throws IOException {
  return BufferedIndexInput.wrap(sliceDescription, this, offset, length);
}