mirror of https://github.com/apache/lucene.git
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:
parent
1f585f0357
commit
0958d83354
|
@ -22,24 +22,28 @@ package org.apache.lucene.spatial.tier.projections;
|
||||||
*/
|
*/
|
||||||
public class CartesianTierPlotter {
|
public class CartesianTierPlotter {
|
||||||
|
|
||||||
int tierLevel;
|
final int tierLevel;
|
||||||
int tierLength;
|
int tierLength;
|
||||||
int tierBoxes;
|
int tierBoxes;
|
||||||
int tierVerticalPosDivider;
|
int tierVerticalPosDivider;
|
||||||
IProjector projector;
|
final IProjector projector;
|
||||||
final String fieldPrefix = "_localTier";
|
final String fieldPrefix;
|
||||||
Double idd = new Double(180);
|
Double idd = new Double(180);
|
||||||
|
|
||||||
public CartesianTierPlotter (int tierLevel, IProjector projector) {
|
public CartesianTierPlotter (int tierLevel, IProjector projector, String fieldPrefix) {
|
||||||
|
|
||||||
this.tierLevel = tierLevel;
|
this.tierLevel = tierLevel;
|
||||||
this.projector = projector;
|
this.projector = projector;
|
||||||
|
this.fieldPrefix = fieldPrefix;
|
||||||
|
|
||||||
setTierLength();
|
setTierLength();
|
||||||
setTierBoxes();
|
setTierBoxes();
|
||||||
setTierVerticalPosDivider();
|
setTierVerticalPosDivider();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CartesianTierPlotter (int tierLevel, IProjector projector) {
|
||||||
|
this( tierLevel, projector, "_localTier" );
|
||||||
|
}
|
||||||
|
|
||||||
private void setTierLength (){
|
private void setTierLength (){
|
||||||
this.tierLength = (int) Math.pow(2 , this.tierLevel);
|
this.tierLength = (int) Math.pow(2 , this.tierLevel);
|
||||||
|
|
Loading…
Reference in New Issue