public interface BinningStrategy extends Persistable
Modifier and Type | Method and Description |
---|---|
<T> ByteArray[] |
getBins(DataTypeAdapter<T> type,
T entry,
GeoWaveRow... rows)
Get the bins used by the given entry.
|
default <T> double |
getWeight(ByteArray bin,
DataTypeAdapter<T> type,
T entry,
GeoWaveRow... rows)
This computes a weight for the bin of a given entry.
|
fromBinary, toBinary
<T> ByteArray[] getBins(DataTypeAdapter<T> type, T entry, GeoWaveRow... rows)
T
- The type that will be used to bin on and the weight for a particular bin (if
multiple bins sometimes they can be weighted, a supplier is used to defer evaluation).
This could be anything, but you may see things like SimpleFeature
, or
CommonIndexedPersistenceEncoding
used mostly.type
- the data typeentry
- the entryrows
- the rows created for the entrydefault <T> double getWeight(ByteArray bin, DataTypeAdapter<T> type, T entry, GeoWaveRow... rows)
T
- The type that will be used to bin on and the weight for a particular bin (if
multiple bins sometimes they can be weighted, a supplier is used to defer evaluation).
This could be anything, but you may see things like SimpleFeature
, or
CommonIndexedPersistenceEncoding
used mostly.bin
- the bin used for the given entry for which to get a weighting factortype
- the data typeentry
- the entryrows
- the rows created for the entryCopyright © 2013–2022. All rights reserved.