Class OSHDBCombinedIndex<U extends Comparable<U> & Serializable,​V extends Comparable<V> & Serializable>

    • Constructor Detail

      • OSHDBCombinedIndex

        public OSHDBCombinedIndex​(U index1,
                                  V index2)
    • Method Detail

      • getFirstIndex

        public U getFirstIndex()
      • getSecondIndex

        public V getSecondIndex()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • nest

        public static <A,​U extends Comparable<U> & Serializable,​V extends Comparable<V> & SerializableSortedMap<U,​SortedMap<V,​A>> 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.

        This version creates a map for each <U> index value, containing maps containing results by timestamps.

        Type Parameters:
        A - an arbitrary data type, used for the data value items
        U - an arbitrary data type, used for the index'es key items
        V - an arbitrary data type, used for the index'es key items
        Parameters:
        result - the "flat" result data structure that should be converted to a nested structure
        Returns:
        a nested data structure: for each index part there is a separate level of nested maps