Class OnlineSortedNeighborhoodMethod.Pass<T,​K extends java.lang.Comparable<K>>

  • Type Parameters:
    T - the type of the record.
    K - the type of the sorting key.
    Enclosing class:
    OnlineSortedNeighborhoodMethod<T>

    public static class OnlineSortedNeighborhoodMethod.Pass<T,​K extends java.lang.Comparable<K>>
    extends java.lang.Object
    Represents a pass over the dataset with a specific sorting key and window size.
    • Constructor Summary

      Constructors 
      Constructor Description
      Pass​(@NonNull SortingKey<? super T,​? extends K> sortingKey, int windowSize)
      Creates a pass with the given sorting key and window size.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      @NonNull SortingKey<? super T,​? extends K> getSortingKey()
      The sorting key to use in this pass.
      int getWindowSize()
      The window >= 2.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Pass

        public Pass​(@NonNull
                    @NonNull SortingKey<? super T,​? extends K> sortingKey,
                    int windowSize)
        Creates a pass with the given sorting key and window size.
        Parameters:
        sortingKey - the sorting key to use in this pass.
        windowSize - the window size >= 2.
        Throws:
        java.lang.IllegalArgumentException - if windowSize < 2.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getSortingKey

        @NonNull
        public @NonNull SortingKey<? super T,​? extends K> getSortingKey()
        The sorting key to use in this pass.
      • getWindowSize

        public int getWindowSize()
        The window >= 2.