LUCENE-4393: Moved RollingCharBuffer to lucene-analysis-common.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1386580 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2012-09-17 12:34:16 +00:00
parent 1d29be24f1
commit e0cbfe9406
6 changed files with 14 additions and 5 deletions

View File

@ -23,6 +23,9 @@ Changes in backwards compatibility policy
* LUCENE-4392: Class org.apache.lucene.util.SortedVIntList has been removed.
(Adrien Grand)
* LUCENE-4393: RollingCharBuffer has been moved to the o.a.l.analysis.util
package of lucene-analysis-common. (Adrien Grand)
New Features
* LUCENE-1888: Added the option to store payloads in the term

View File

@ -22,8 +22,8 @@ import java.io.Reader;
import java.util.Map;
import org.apache.lucene.analysis.CharFilter; // javadocs
import org.apache.lucene.analysis.util.RollingCharBuffer;
import org.apache.lucene.util.CharsRef;
import org.apache.lucene.util.RollingCharBuffer;
import org.apache.lucene.util.fst.CharSequenceOutputs;
import org.apache.lucene.util.fst.FST;
import org.apache.lucene.util.fst.Outputs;

View File

@ -1,4 +1,4 @@
package org.apache.lucene.util;
package org.apache.lucene.analysis.util;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
@ -20,6 +20,9 @@ package org.apache.lucene.util;
import java.io.IOException;
import java.io.Reader;
import org.apache.lucene.util.ArrayUtil;
import org.apache.lucene.util.RamUsageEstimator;
/** Acts like a forever growing char[] as you read
* characters into it from the provided reader, but
* internally it uses a circular buffer to only hold the

View File

@ -1,4 +1,4 @@
package org.apache.lucene.util;
package org.apache.lucene.analysis.util;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
@ -20,6 +20,9 @@ package org.apache.lucene.util;
import java.io.StringReader;
import java.util.Random;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util._TestUtil;
public class TestRollingCharBuffer extends LuceneTestCase {
public void test() throws Exception {

View File

@ -18,7 +18,7 @@ package org.apache.lucene.analysis.ja;
*/
import org.apache.lucene.analysis.CharFilter;
import org.apache.lucene.util.RollingCharBuffer;
import org.apache.lucene.analysis.util.RollingCharBuffer;
import java.io.IOException;
import java.io.Reader;

View File

@ -38,10 +38,10 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
import org.apache.lucene.analysis.tokenattributes.PositionLengthAttribute;
import org.apache.lucene.analysis.util.RollingCharBuffer;
import org.apache.lucene.util.ArrayUtil;
import org.apache.lucene.util.IntsRef;
import org.apache.lucene.util.RamUsageEstimator;
import org.apache.lucene.util.RollingCharBuffer;
import org.apache.lucene.util.fst.FST;
// TODO: somehow factor out a reusable viterbi search here,