本文整理汇总了Java中org.apache.lucene.codecs.LiveDocsFormat类的典型用法代码示例。如果您正苦于以下问题:Java LiveDocsFormat类的具体用法?Java LiveDocsFormat怎么用?Java LiveDocsFormat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LiveDocsFormat类属于org.apache.lucene.codecs包,在下文中一共展示了LiveDocsFormat类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: eval
import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
@Override
public void eval(MockDirectoryWrapper dir) throws IOException {
if (!doFail) {
return;
}
StackTraceElement[] trace = new Exception().getStackTrace();
for (int i = 0; i < trace.length; i++) {
if (SegmentMerger.class.getName().equals(trace[i].getClassName()) && "mergeTerms".equals(trace[i].getMethodName()) && !didFail1) {
didFail1 = true;
throw new IOException("fake disk full during mergeTerms");
}
if (LiveDocsFormat.class.getName().equals(trace[i].getClassName()) && "writeLiveDocs".equals(trace[i].getMethodName()) && !didFail2) {
didFail2 = true;
throw new IOException("fake disk full while writing LiveDocs");
}
}
}
示例2: liveDocsFormat
import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
@Override
public final LiveDocsFormat liveDocsFormat() {
return liveDocsFormat;
}
示例3: liveDocsFormat
import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
@Override
public LiveDocsFormat liveDocsFormat() {
return liveDocsFormat;
}
示例4: liveDocsFormat
import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
@Override
public LiveDocsFormat liveDocsFormat() {
return liveDocs;
}
示例5: liveDocsFormat
import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
@Override
public LiveDocsFormat liveDocsFormat() {
return new CrankyLiveDocsFormat(delegate.liveDocsFormat(), random);
}
示例6: CrankyLiveDocsFormat
import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
CrankyLiveDocsFormat(LiveDocsFormat delegate, Random random) {
this.delegate = delegate;
this.random = random;
}