当前位置: 首页>>代码示例>>Java>>正文


Java LiveDocsFormat类代码示例

本文整理汇总了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");
    }
  }
}
 
开发者ID:europeana,项目名称:search,代码行数:18,代码来源:TestIndexWriterOnDiskFull.java

示例2: liveDocsFormat

import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
@Override
public final LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:Lucene40Codec.java

示例3: liveDocsFormat

import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
@Override
public LiveDocsFormat liveDocsFormat() {
  return liveDocsFormat;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:Lucene3xCodec.java

示例4: liveDocsFormat

import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
@Override
public LiveDocsFormat liveDocsFormat() {
  return liveDocs;
}
 
开发者ID:europeana,项目名称:search,代码行数:5,代码来源:SimpleTextCodec.java

示例5: liveDocsFormat

import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
@Override
public LiveDocsFormat liveDocsFormat() {
  return new CrankyLiveDocsFormat(delegate.liveDocsFormat(), random);
}
 
开发者ID:europeana,项目名称:search,代码行数:5,代码来源:CrankyCodec.java

示例6: CrankyLiveDocsFormat

import org.apache.lucene.codecs.LiveDocsFormat; //导入依赖的package包/类
CrankyLiveDocsFormat(LiveDocsFormat delegate, Random random) {
  this.delegate = delegate;
  this.random = random;
}
 
开发者ID:europeana,项目名称:search,代码行数:5,代码来源:CrankyLiveDocsFormat.java


注:本文中的org.apache.lucene.codecs.LiveDocsFormat类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。