package mil.nga.giat.geowave.core.index.simple; import mil.nga.giat.geowave.core.index.lexicoder.Lexicoders; /** * A simple 1-dimensional NumericIndexStrategy that represents an index of * signed long values. The strategy doesn't use any binning. The ids are simply * the byte arrays of the value. This index strategy will not perform well for * inserting ranges because there will be too much replication of data. * */ public class SimpleLongIndexStrategy extends SimpleNumericIndexStrategy<Long> { public SimpleLongIndexStrategy() { super( Lexicoders.LONG); } @Override public byte[] toBinary() { return new byte[] {}; } @Override public void fromBinary( final byte[] bytes ) {} @Override protected Long cast( final double value ) { return (long) value; } @Override public int getByteOffsetFromDimensionalIndex() { return 0; } }