public class OSHDBCombinedIndex<U extends Comparable<U> & Serializable,V extends Comparable<V> & Serializable> extends Object implements Comparable<OSHDBCombinedIndex<U,V>>, Serializable
| Constructor and Description |
|---|
OSHDBCombinedIndex(U index1,
V index2) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(OSHDBCombinedIndex<U,V> other) |
boolean |
equals(Object obj) |
U |
getFirstIndex() |
V |
getSecondIndex() |
int |
hashCode() |
static <A,U extends Comparable<U> & Serializable,V extends Comparable<V> & Serializable> |
nest(Map<OSHDBCombinedIndex<U,V>,A> result)
Helper function that converts the dual-index data structure returned by aggregation operations
on this object to a nested Map structure, which can be easier to process further on.
|
String |
toString() |
public U getFirstIndex()
public V getSecondIndex()
public int compareTo(@NotNull
OSHDBCombinedIndex<U,V> other)
compareTo in interface Comparable<OSHDBCombinedIndex<U extends Comparable<U> & Serializable,V extends Comparable<V> & Serializable>>public static <A,U extends Comparable<U> & Serializable,V extends Comparable<V> & Serializable> SortedMap<U,SortedMap<V,A>> nest(Map<OSHDBCombinedIndex<U,V>,A> result)
This version creates a map for each <U> index value, containing maps containing results by timestamps.
A - an arbitrary data type, used for the data value itemsU - an arbitrary data type, used for the index'es key itemsV - an arbitrary data type, used for the index'es key itemsresult - the "flat" result data structure that should be converted to a nested structureCopyright © 2016–2020 HeiGIT. All rights reserved.