All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.kudu.Hash Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: hash.proto

package org.apache.kudu;

public final class Hash {
  private Hash() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Implemented hash algorithms.
   * 
* * Protobuf enum {@code kudu.HashAlgorithm} */ public enum HashAlgorithm implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN_HASH = 0; */ UNKNOWN_HASH(0), /** * MURMUR_HASH_2 = 1; */ MURMUR_HASH_2(1), /** * CITY_HASH = 2; */ CITY_HASH(2), /** * FAST_HASH = 3; */ FAST_HASH(3), ; /** * UNKNOWN_HASH = 0; */ public static final int UNKNOWN_HASH_VALUE = 0; /** * MURMUR_HASH_2 = 1; */ public static final int MURMUR_HASH_2_VALUE = 1; /** * CITY_HASH = 2; */ public static final int CITY_HASH_VALUE = 2; /** * FAST_HASH = 3; */ public static final int FAST_HASH_VALUE = 3; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static HashAlgorithm valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static HashAlgorithm forNumber(int value) { switch (value) { case 0: return UNKNOWN_HASH; case 1: return MURMUR_HASH_2; case 2: return CITY_HASH; case 3: return FAST_HASH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< HashAlgorithm> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public HashAlgorithm findValueByNumber(int number) { return HashAlgorithm.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.kudu.Hash.getDescriptor().getEnumTypes().get(0); } private static final HashAlgorithm[] VALUES = values(); public static HashAlgorithm valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private HashAlgorithm(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:kudu.HashAlgorithm) } public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\nhash.proto\022\004kudu*R\n\rHashAlgorithm\022\020\n\014U" + "NKNOWN_HASH\020\000\022\021\n\rMURMUR_HASH_2\020\001\022\r\n\tCITY" + "_HASH\020\002\022\r\n\tFAST_HASH\020\003B\021\n\017org.apache.kud" + "u" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy