Class HashFunctionPartitioner

    • Constructor Detail

      • HashFunctionPartitioner

        public HashFunctionPartitioner()
      • HashFunctionPartitioner

        public HashFunctionPartitioner​(int numSegments)
    • Method Detail

      • init

        public void init​(HashConfiguration configuration)
        Description copied from interface: KeyPartitioner
        Initialization.

        The partitioner can also use injection to access other cache-level or global components. This method will be called before any other injection methods.

        Does not need to be thread-safe (Infinispan safely publishes the instance after initialization).

        Specified by:
        init in interface KeyPartitioner
      • getHash

        public Hash getHash()
      • getSegmentEndHashes

        public List<Integer> getSegmentEndHashes()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object