Java Code Examples for org.apache.lucene.codecs.LiveDocsFormat

The following examples show how to use org.apache.lucene.codecs.LiveDocsFormat. 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
Source Project: lucene-solr   Source File: TestIndexWriterOnDiskFull.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void eval(MockDirectoryWrapper dir)  throws IOException {
  if (!doFail) {
    return;
  }
  if (callStackContains(SegmentMerger.class, "mergeTerms") && !didFail1) {
    didFail1 = true;
    throw new IOException("fake disk full during mergeTerms");
  }
  if (callStackContains(LiveDocsFormat.class, "writeLiveDocs") && !didFail2) {
    didFail2 = true;
    throw new IOException("fake disk full while writing LiveDocs");
  }
}
 
Example 2
Source Project: lucene-solr   Source File: SimpleTextCodec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public LiveDocsFormat liveDocsFormat() {
  return liveDocs;
}
 
Example 3
Source Project: lucene-solr   Source File: AssertingCodec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public LiveDocsFormat liveDocsFormat() {
  return liveDocs;
}
 
Example 4
Source Project: lucene-solr   Source File: CrankyCodec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public LiveDocsFormat liveDocsFormat() {
  return new CrankyLiveDocsFormat(delegate.liveDocsFormat(), random);
}
 
Example 5
Source Project: lucene-solr   Source File: CrankyLiveDocsFormat.java    License: Apache License 2.0 4 votes vote down vote up
CrankyLiveDocsFormat(LiveDocsFormat delegate, Random random) {
  this.delegate = delegate;
  this.random = random;
}
 
Example 6
Source Project: lucene-solr   Source File: Lucene86Codec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example 7
Source Project: lucene-solr   Source File: Lucene80Codec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example 8
Source Project: lucene-solr   Source File: Lucene84Codec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example 9
Source Project: mtas   Source File: MtasCodec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public LiveDocsFormat liveDocsFormat() {
  initDelegate();
  return delegate.liveDocsFormat();
}
 
Example 10
Source Project: incubator-retired-blur   Source File: Blur021Codec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example 11
Source Project: incubator-retired-blur   Source File: Blur022Codec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example 12
Source Project: incubator-retired-blur   Source File: Blur024Codec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}