From 0958d83354a7bdc4a1f33a59db62efcaa743fb23 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Fri, 2 Jan 2009 02:52:30 +0000 Subject: [PATCH] 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 --- .../tier/projections/CartesianTierPlotter.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/contrib/spatial/src/java/org/apache/lucene/spatial/tier/projections/CartesianTierPlotter.java b/contrib/spatial/src/java/org/apache/lucene/spatial/tier/projections/CartesianTierPlotter.java index 616988a440b..e639bb0b3e1 100644 --- a/contrib/spatial/src/java/org/apache/lucene/spatial/tier/projections/CartesianTierPlotter.java +++ b/contrib/spatial/src/java/org/apache/lucene/spatial/tier/projections/CartesianTierPlotter.java @@ -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);