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 {
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue