Interface ConsistentHashingOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    ConsistentHashing, ConsistentHashing.Builder

    public interface ConsistentHashingOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getModulo()
      The value to use for the modulus in the calculation.
      long getSeed()
      Optional seed passed through the hash function.
      int getThreshold()
      The threshold the resulting hash must be over in order for this matcher to evaluate to true.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getThreshold

        int getThreshold()
         The threshold the resulting hash must be over in order for this matcher to evaluate to true.
         This value must be below the configured modulo value.
         Setting this to 0 is equivalent to this matcher always matching.
         
        uint32 threshold = 1;
        Returns:
        The threshold.
      • getModulo

        int getModulo()
         The value to use for the modulus in the calculation. This effectively  bounds the hash output,
         specifying the range of possible values.
         This value must be above the configured threshold.
         
        uint32 modulo = 2 [(.validate.rules) = { ... }
        Returns:
        The modulo.
      • getSeed

        long getSeed()
         Optional seed passed through the hash function. This allows using additional information when computing
         the hash value: by changing the seed value, a different partition of matching and non-matching inputs will
         be created that remains consistent for that seed value.
         
        uint64 seed = 3;
        Returns:
        The seed.