mirror of https://github.com/apache/lucene.git
LUCENE-5969: Lucene410Codec -> backwards
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1627517 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3d0fc4eefe
commit
dd6d6365ea
|
@ -17,11 +17,14 @@ package org.apache.lucene.codecs.lucene410;
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
import org.apache.lucene.codecs.Codec;
|
import org.apache.lucene.codecs.Codec;
|
||||||
import org.apache.lucene.codecs.DocValuesFormat;
|
import org.apache.lucene.codecs.DocValuesFormat;
|
||||||
import org.apache.lucene.codecs.FieldInfosFormat;
|
import org.apache.lucene.codecs.FieldInfosFormat;
|
||||||
import org.apache.lucene.codecs.FilterCodec;
|
import org.apache.lucene.codecs.FilterCodec;
|
||||||
import org.apache.lucene.codecs.LiveDocsFormat;
|
import org.apache.lucene.codecs.LiveDocsFormat;
|
||||||
|
import org.apache.lucene.codecs.NormsConsumer;
|
||||||
import org.apache.lucene.codecs.NormsFormat;
|
import org.apache.lucene.codecs.NormsFormat;
|
||||||
import org.apache.lucene.codecs.PostingsFormat;
|
import org.apache.lucene.codecs.PostingsFormat;
|
||||||
import org.apache.lucene.codecs.SegmentInfoFormat;
|
import org.apache.lucene.codecs.SegmentInfoFormat;
|
||||||
|
@ -35,6 +38,7 @@ import org.apache.lucene.codecs.lucene46.Lucene46SegmentInfoFormat;
|
||||||
import org.apache.lucene.codecs.lucene49.Lucene49NormsFormat;
|
import org.apache.lucene.codecs.lucene49.Lucene49NormsFormat;
|
||||||
import org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat;
|
import org.apache.lucene.codecs.perfield.PerFieldDocValuesFormat;
|
||||||
import org.apache.lucene.codecs.perfield.PerFieldPostingsFormat;
|
import org.apache.lucene.codecs.perfield.PerFieldPostingsFormat;
|
||||||
|
import org.apache.lucene.index.SegmentWriteState;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the Lucene 4.10 index format, with configurable per-field postings
|
* Implements the Lucene 4.10 index format, with configurable per-field postings
|
||||||
|
@ -131,7 +135,12 @@ public class Lucene410Codec extends Codec {
|
||||||
private final PostingsFormat defaultFormat = PostingsFormat.forName("Lucene41");
|
private final PostingsFormat defaultFormat = PostingsFormat.forName("Lucene41");
|
||||||
private final DocValuesFormat defaultDVFormat = DocValuesFormat.forName("Lucene410");
|
private final DocValuesFormat defaultDVFormat = DocValuesFormat.forName("Lucene410");
|
||||||
|
|
||||||
private final NormsFormat normsFormat = new Lucene49NormsFormat();
|
private final NormsFormat normsFormat = new Lucene49NormsFormat() {
|
||||||
|
@Override
|
||||||
|
public NormsConsumer normsConsumer(SegmentWriteState state) throws IOException {
|
||||||
|
throw new UnsupportedOperationException("this codec can only be used for reading");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final NormsFormat normsFormat() {
|
public final NormsFormat normsFormat() {
|
|
@ -0,0 +1,25 @@
|
||||||
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
||||||
|
<!--
|
||||||
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
|
this work for additional information regarding copyright ownership.
|
||||||
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||||
|
(the "License"); you may not use this file except in compliance with
|
||||||
|
the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Lucene 4.10 file format.
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -19,3 +19,5 @@ org.apache.lucene.codecs.lucene42.Lucene42Codec
|
||||||
org.apache.lucene.codecs.lucene45.Lucene45Codec
|
org.apache.lucene.codecs.lucene45.Lucene45Codec
|
||||||
org.apache.lucene.codecs.lucene46.Lucene46Codec
|
org.apache.lucene.codecs.lucene46.Lucene46Codec
|
||||||
org.apache.lucene.codecs.lucene49.Lucene49Codec
|
org.apache.lucene.codecs.lucene49.Lucene49Codec
|
||||||
|
org.apache.lucene.codecs.lucene410.Lucene410Codec
|
||||||
|
|
||||||
|
|
|
@ -13,5 +13,4 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
org.apache.lucene.codecs.lucene410.Lucene410Codec
|
|
||||||
org.apache.lucene.codecs.lucene50.Lucene50Codec
|
org.apache.lucene.codecs.lucene50.Lucene50Codec
|
||||||
|
|
Loading…
Reference in New Issue