mirror of https://github.com/apache/lucene.git
LUCENE-3617: move AppendingCodec to core
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1211182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3fc07698f3
commit
52fb6a585a
|
@ -13,7 +13,6 @@
|
||||||
<classpathentry kind="src" path="lucene/contrib/memory/src/java"/>
|
<classpathentry kind="src" path="lucene/contrib/memory/src/java"/>
|
||||||
<classpathentry kind="src" path="lucene/contrib/memory/src/test"/>
|
<classpathentry kind="src" path="lucene/contrib/memory/src/test"/>
|
||||||
<classpathentry kind="src" path="lucene/contrib/misc/src/java"/>
|
<classpathentry kind="src" path="lucene/contrib/misc/src/java"/>
|
||||||
<classpathentry kind="src" output="bin.misc" path="lucene/contrib/misc/src/resources"/>
|
|
||||||
<classpathentry kind="src" path="lucene/contrib/misc/src/test"/>
|
<classpathentry kind="src" path="lucene/contrib/misc/src/test"/>
|
||||||
<classpathentry kind="src" path="lucene/contrib/sandbox/src/java"/>
|
<classpathentry kind="src" path="lucene/contrib/sandbox/src/java"/>
|
||||||
<classpathentry kind="src" path="lucene/contrib/sandbox/src/test"/>
|
<classpathentry kind="src" path="lucene/contrib/sandbox/src/test"/>
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
# 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.
|
|
||||||
|
|
||||||
org.apache.lucene.index.codecs.appending.AppendingCodec
|
|
|
@ -16,3 +16,4 @@
|
||||||
org.apache.lucene.index.codecs.lucene40.Lucene40Codec
|
org.apache.lucene.index.codecs.lucene40.Lucene40Codec
|
||||||
org.apache.lucene.index.codecs.lucene3x.Lucene3xCodec
|
org.apache.lucene.index.codecs.lucene3x.Lucene3xCodec
|
||||||
org.apache.lucene.index.codecs.simpletext.SimpleTextCodec
|
org.apache.lucene.index.codecs.simpletext.SimpleTextCodec
|
||||||
|
org.apache.lucene.index.codecs.appending.AppendingCodec
|
||||||
|
|
|
@ -40,6 +40,7 @@ import org.apache.lucene.document.FieldType;
|
||||||
import org.apache.lucene.index.*;
|
import org.apache.lucene.index.*;
|
||||||
import org.apache.lucene.index.codecs.Codec;
|
import org.apache.lucene.index.codecs.Codec;
|
||||||
import org.apache.lucene.index.codecs.PostingsFormat;
|
import org.apache.lucene.index.codecs.PostingsFormat;
|
||||||
|
import org.apache.lucene.index.codecs.appending.AppendingCodec;
|
||||||
import org.apache.lucene.index.codecs.lucene40.Lucene40Codec;
|
import org.apache.lucene.index.codecs.lucene40.Lucene40Codec;
|
||||||
import org.apache.lucene.index.codecs.preflexrw.PreFlexRWCodec;
|
import org.apache.lucene.index.codecs.preflexrw.PreFlexRWCodec;
|
||||||
import org.apache.lucene.index.codecs.simpletext.SimpleTextCodec;
|
import org.apache.lucene.index.codecs.simpletext.SimpleTextCodec;
|
||||||
|
@ -286,6 +287,8 @@ public abstract class LuceneTestCase extends Assert {
|
||||||
PREFLEX_IMPERSONATION_IS_ACTIVE = true;
|
PREFLEX_IMPERSONATION_IS_ACTIVE = true;
|
||||||
} else if ("SimpleText".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 9)) {
|
} else if ("SimpleText".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 9)) {
|
||||||
codec = new SimpleTextCodec();
|
codec = new SimpleTextCodec();
|
||||||
|
} else if ("Appending".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 8)) {
|
||||||
|
codec = new AppendingCodec();
|
||||||
} else if (!"random".equals(TEST_CODEC)) {
|
} else if (!"random".equals(TEST_CODEC)) {
|
||||||
codec = Codec.forName(TEST_CODEC);
|
codec = Codec.forName(TEST_CODEC);
|
||||||
} else if ("random".equals(TEST_POSTINGSFORMAT)) {
|
} else if ("random".equals(TEST_POSTINGSFORMAT)) {
|
||||||
|
|
Loading…
Reference in New Issue