LUCENE-5608: fix visibility of CellTokenStream from RPT/PT Strategy because of javadoc constraints on package visibility

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1588457 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2014-04-18 12:24:59 +00:00
parent a536cb3548
commit 8afaa1ea5b
2 changed files with 3 additions and 2 deletions

View File

@ -133,7 +133,7 @@ public abstract class PrefixTreeStrategy extends SpatialStrategy {
return new Field[]{field};
}
protected CellTokenStream createTokenStream(Shape shape, int detailLevel) {
protected TokenStream createTokenStream(Shape shape, int detailLevel) {
Iterator<Cell> cells = grid.getTreeCellIterator(shape, detailLevel);
return new CellTokenStream().setCells(cells);
}

View File

@ -19,6 +19,7 @@ package org.apache.lucene.spatial.prefix;
import com.spatial4j.core.shape.Point;
import com.spatial4j.core.shape.Shape;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.search.Filter;
import org.apache.lucene.spatial.DisjointSpatialFilter;
import org.apache.lucene.spatial.prefix.tree.Cell;
@ -112,7 +113,7 @@ public class RecursivePrefixTreeStrategy extends PrefixTreeStrategy {
}
@Override
protected CellTokenStream createTokenStream(Shape shape, int detailLevel) {
protected TokenStream createTokenStream(Shape shape, int detailLevel) {
if (shape instanceof Point || !pruneLeafyBranches)
return super.createTokenStream(shape, detailLevel);