public static class PlanetModel.DocValueEncoder extends Object
Modifier and Type | Method and Description |
---|---|
GeoPoint |
decodePoint(long docValue)
Decode GeoPoint value from long docvalues value.
|
double |
decodeXValue(long docValue)
Decode X value from long docvalues value.
|
double |
decodeYValue(long docValue)
Decode Y value from long docvalues value.
|
double |
decodeZValue(long docValue)
Decode Z value from long docvalues value.
|
long |
encodePoint(double x,
double y,
double z)
Encode a point.
|
long |
encodePoint(GeoPoint point)
Encode a point.
|
double |
roundDownX(double startValue)
Round the provided X value down, by encoding it, decrementing it, and unencoding it.
|
double |
roundDownY(double startValue)
Round the provided Y value down, by encoding it, decrementing it, and unencoding it.
|
double |
roundDownZ(double startValue)
Round the provided Z value down, by encoding it, decrementing it, and unencoding it.
|
double |
roundUpX(double startValue)
Round the provided X value up, by encoding it, incrementing it, and unencoding it.
|
double |
roundUpY(double startValue)
Round the provided Y value up, by encoding it, incrementing it, and unencoding it.
|
double |
roundUpZ(double startValue)
Round the provided Z value up, by encoding it, incrementing it, and unencoding it.
|
public long encodePoint(GeoPoint point)
point
- is the pointpublic long encodePoint(double x, double y, double z)
x
- is the x valuey
- is the y valuez
- is the z valuepublic GeoPoint decodePoint(long docValue)
docValue
- is the doc values value.public double decodeXValue(long docValue)
docValue
- is the doc values value.public double decodeYValue(long docValue)
docValue
- is the doc values value.public double decodeZValue(long docValue)
docValue
- is the doc values value.public double roundDownX(double startValue)
startValue
- is the starting value.public double roundUpX(double startValue)
startValue
- is the starting value.public double roundDownY(double startValue)
startValue
- is the starting value.public double roundUpY(double startValue)
startValue
- is the starting value.public double roundDownZ(double startValue)
startValue
- is the starting value.public double roundUpZ(double startValue)
startValue
- is the starting value.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.