LUCENE-1508 -- make the field prefix configurable

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@730658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2009-01-02 02:52:30 +00:00
parent 1f585f0357
commit 0958d83354
1 changed files with 9 additions and 5 deletions

View File

@ -22,24 +22,28 @@ package org.apache.lucene.spatial.tier.projections;
*/
public class CartesianTierPlotter {
int tierLevel;
final int tierLevel;
int tierLength;
int tierBoxes;
int tierVerticalPosDivider;
IProjector projector;
final String fieldPrefix = "_localTier";
final IProjector projector;
final String fieldPrefix;
Double idd = new Double(180);
public CartesianTierPlotter (int tierLevel, IProjector projector) {
public CartesianTierPlotter (int tierLevel, IProjector projector, String fieldPrefix) {
this.tierLevel = tierLevel;
this.projector = projector;
this.fieldPrefix = fieldPrefix;
setTierLength();
setTierBoxes();
setTierVerticalPosDivider();
}
public CartesianTierPlotter (int tierLevel, IProjector projector) {
this( tierLevel, projector, "_localTier" );
}
private void setTierLength (){
this.tierLength = (int) Math.pow(2 , this.tierLevel);