mirror of https://github.com/apache/lucene.git
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:
parent
1d29be24f1
commit
e0cbfe9406
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
|
@ -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 {
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue