org.apache.lucene.codecs.LiveDocsFormat Java Examples

The following examples show how to use org.apache.lucene.codecs.LiveDocsFormat. 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 File: TestIndexWriterOnDiskFull.java    From lucene-solr with 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 File: SimpleTextCodec.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
@Override
public LiveDocsFormat liveDocsFormat() {
  return liveDocs;
}
 
Example #3
Source File: AssertingCodec.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
@Override
public LiveDocsFormat liveDocsFormat() {
  return liveDocs;
}
 
Example #4
Source File: CrankyCodec.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
@Override
public LiveDocsFormat liveDocsFormat() {
  return new CrankyLiveDocsFormat(delegate.liveDocsFormat(), random);
}
 
Example #5
Source File: CrankyLiveDocsFormat.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
CrankyLiveDocsFormat(LiveDocsFormat delegate, Random random) {
  this.delegate = delegate;
  this.random = random;
}
 
Example #6
Source File: Lucene86Codec.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example #7
Source File: Lucene80Codec.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example #8
Source File: Lucene84Codec.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example #9
Source File: MtasCodec.java    From mtas with Apache License 2.0 4 votes vote down vote up
@Override
public LiveDocsFormat liveDocsFormat() {
  initDelegate();
  return delegate.liveDocsFormat();
}
 
Example #10
Source File: Blur021Codec.java    From incubator-retired-blur with Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example #11
Source File: Blur022Codec.java    From incubator-retired-blur with Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
Example #12
Source File: Blur024Codec.java    From incubator-retired-blur with Apache License 2.0 4 votes vote down vote up
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}