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

The following examples show how to use org.apache.lucene.codecs.SegmentInfoFormat. 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: TestLucene70SegmentInfoFormat.java    License: Apache License 2.0 5 votes vote down vote up
@Override
protected Codec getCodec() {
  return new FilterCodec("Lucene84", Codec.forName("Lucene84")) {
    @Override
    public SegmentInfoFormat segmentInfoFormat() {
      return new Lucene70RWSegmentInfoFormat();
    }
  };
}
 
Example 2
Source Project: lucene-solr   Source File: SimpleTextCodec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public SegmentInfoFormat segmentInfoFormat() {
  return segmentInfos;
}
 
Example 3
Source Project: lucene-solr   Source File: CrankyCodec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public SegmentInfoFormat segmentInfoFormat() {
  return new CrankySegmentInfoFormat(delegate.segmentInfoFormat(), random);
}
 
Example 4
Source Project: lucene-solr   Source File: CrankySegmentInfoFormat.java    License: Apache License 2.0 4 votes vote down vote up
CrankySegmentInfoFormat(SegmentInfoFormat delegate, Random random) {
  this.delegate = delegate;
  this.random = random;
}
 
Example 5
Source Project: lucene-solr   Source File: Lucene86Codec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public final SegmentInfoFormat segmentInfoFormat() {
  return segmentInfosFormat;
}
 
Example 6
Source Project: lucene-solr   Source File: Lucene80Codec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public final SegmentInfoFormat segmentInfoFormat() {
  return segmentInfosFormat;
}
 
Example 7
Source Project: lucene-solr   Source File: Lucene84Codec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public SegmentInfoFormat segmentInfoFormat() {
  return segmentInfosFormat;
}
 
Example 8
Source Project: lucene-solr   Source File: Lucene84RWCodec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public SegmentInfoFormat segmentInfoFormat() {
  return new Lucene70RWSegmentInfoFormat();
}
 
Example 9
Source Project: mtas   Source File: MtasCodec.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public SegmentInfoFormat segmentInfoFormat() {
  initDelegate();
  return delegate.segmentInfoFormat();
}
 
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 SegmentInfoFormat segmentInfoFormat() {
  return infosFormat;
}
 
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 SegmentInfoFormat segmentInfoFormat() {
  return infosFormat;
}
 
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 SegmentInfoFormat segmentInfoFormat() {
  return infosFormat;
}