/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), MAX_VERSIONS((short)2, "maxVersions"), COMPRESSION((short)3, "compression"), IN_MEMORY((short)4, "inMemory"), BLOOM_FILTER_TYPE((short)5, "bloomFilterType"), BLOOM_FILTER_VECTOR_SIZE((short)6, "bloomFilterVectorSize"), BLOOM_FILTER_NB_HASHES((short)7, "bloomFilterNbHashes"), BLOCK_CACHE_ENABLED((short)8, "blockCacheEnabled"), TIME_TO_LIVE((short)9, "timeToLive"); private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>(); static { for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; case 2: // MAX_VERSIONS return MAX_VERSIONS;
@Test public void testNewExceptionInfo() { final ExceptionInfo exception = newExceptionInfo(FooServiceException.class); assertThat(exception).isEqualTo(new ExceptionInfo( FooServiceException.class.getName(), ImmutableList.of(newFieldInfo( FooServiceException.class, new FieldMetaData("stringVal", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING, false)))))); }
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ID((short)1, "id"), TABLE_NAME((short)2, "tableName"), DB_NAME((short)3, "dbName"), OWNER((short)4, "owner"), CREATE_TIME((short)5, "createTime"), LAST_ACCESS_TIME((short)6, "lastAccessTime"), RETENTION((short)7, "retention"), SD((short)8, "sd"), PARTITION_KEYS((short)9, "partitionKeys"), PARAMETERS((short)10, "parameters"), VIEW_ORIGINAL_TEXT((short)11, "viewOriginalText"), VIEW_EXPANDED_TEXT((short)12, "viewExpandedText"), TABLE_TYPE((short)13, "tableType"), PRIVILEGES((short)14, "privileges"), TEMPORARY((short)15, "temporary"), REWRITE_ENABLED((short)16, "rewriteEnabled"), CREATION_METADATA((short)17, "creationMetadata"), CAT_NAME((short)18, "catName"), /** * * @see PrincipalType */ OWNER_TYPE((short)19, "ownerType"), WRITE_ID((short)20, "writeId"), IS_STATS_COMPLIANT((short)21, "isStatsCompliant"), COL_STATS((short)22, "colStats"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), MAX_VERSIONS((short)2, "maxVersions"), COMPRESSION((short)3, "compression"), IN_MEMORY((short)4, "inMemory"), BLOOM_FILTER_TYPE((short)5, "bloomFilterType"), BLOOM_FILTER_VECTOR_SIZE((short)6, "bloomFilterVectorSize"), BLOOM_FILTER_NB_HASHES((short)7, "bloomFilterNbHashes"), BLOCK_CACHE_ENABLED((short)8, "blockCacheEnabled"), TIME_TO_LIVE((short)9, "timeToLive"); private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>(); static { for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; case 2: // MAX_VERSIONS return MAX_VERSIONS; case 3: // COMPRESSION
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), MAX_VERSIONS((short)2, "maxVersions"), COMPRESSION((short)3, "compression"), IN_MEMORY((short)4, "inMemory"), BLOOM_FILTER_TYPE((short)5, "bloomFilterType"), BLOOM_FILTER_VECTOR_SIZE((short)6, "bloomFilterVectorSize"), BLOOM_FILTER_NB_HASHES((short)7, "bloomFilterNbHashes"), BLOCK_CACHE_ENABLED((short)8, "blockCacheEnabled"), TIME_TO_LIVE((short)9, "timeToLive"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; case 2: // MAX_VERSIONS return MAX_VERSIONS; case 3: // COMPRESSION
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), MAX_VERSIONS((short)2, "maxVersions"), COMPRESSION((short)3, "compression"), IN_MEMORY((short)4, "inMemory"), BLOOM_FILTER_TYPE((short)5, "bloomFilterType"), BLOOM_FILTER_VECTOR_SIZE((short)6, "bloomFilterVectorSize"), BLOOM_FILTER_NB_HASHES((short)7, "bloomFilterNbHashes"), BLOCK_CACHE_ENABLED((short)8, "blockCacheEnabled"), TIME_TO_LIVE((short)9, "timeToLive"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; case 2: // MAX_VERSIONS return MAX_VERSIONS; case 3: // COMPRESSION
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), MAX_VERSIONS((short)2, "maxVersions"), COMPRESSION((short)3, "compression"), IN_MEMORY((short)4, "inMemory"), BLOOM_FILTER_TYPE((short)5, "bloomFilterType"), BLOOM_FILTER_VECTOR_SIZE((short)6, "bloomFilterVectorSize"), BLOOM_FILTER_NB_HASHES((short)7, "bloomFilterNbHashes"), BLOCK_CACHE_ENABLED((short)8, "blockCacheEnabled"), TIME_TO_LIVE((short)9, "timeToLive"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; case 2: // MAX_VERSIONS return MAX_VERSIONS; case 3: // COMPRESSION
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements TFieldIdEnum { QUERY((short)1, "query"), START((short)2, "start"), LENGTH((short)3, "length"), SCORING_FUNCTION_INDEX((short)4, "scoringFunctionIndex"), QUERY_VARIABLES((short)6, "query_variables"), FACETS_FILTER((short)7, "facetsFilter"), VARIABLE_RANGE_FILTERS((short)8, "variableRangeFilters"), FUNCTION_RANGE_FILTERS((short)9, "functionRangeFilters"), EXTRA_PARAMETERS((short)5, "extra_parameters"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // QUERY return QUERY; case 2: // START return START; case 3: // LENGTH
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), MAX_VERSIONS((short)2, "maxVersions"), COMPRESSION((short)3, "compression"), IN_MEMORY((short)4, "inMemory"), BLOOM_FILTER_TYPE((short)5, "bloomFilterType"), BLOOM_FILTER_VECTOR_SIZE((short)6, "bloomFilterVectorSize"), BLOOM_FILTER_NB_HASHES((short)7, "bloomFilterNbHashes"), BLOCK_CACHE_ENABLED((short)8, "blockCacheEnabled"), TIME_TO_LIVE((short)9, "timeToLive"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; case 2: // MAX_VERSIONS return MAX_VERSIONS; case 3: // COMPRESSION
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), MAX_VERSIONS((short)2, "maxVersions"), COMPRESSION((short)3, "compression"), IN_MEMORY((short)4, "inMemory"), BLOOM_FILTER_TYPE((short)5, "bloomFilterType"), BLOOM_FILTER_VECTOR_SIZE((short)6, "bloomFilterVectorSize"), BLOOM_FILTER_NB_HASHES((short)7, "bloomFilterNbHashes"), BLOCK_CACHE_ENABLED((short)8, "blockCacheEnabled"), TIME_TO_LIVE((short)9, "timeToLive"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; case 2: // MAX_VERSIONS return MAX_VERSIONS; case 3: // COMPRESSION
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { NAME((short)1, "name"), MAX_VERSIONS((short)2, "maxVersions"), COMPRESSION((short)3, "compression"), IN_MEMORY((short)4, "inMemory"), BLOOM_FILTER_TYPE((short)5, "bloomFilterType"), BLOOM_FILTER_VECTOR_SIZE((short)6, "bloomFilterVectorSize"), BLOOM_FILTER_NB_HASHES((short)7, "bloomFilterNbHashes"), BLOCK_CACHE_ENABLED((short)8, "blockCacheEnabled"), TIME_TO_LIVE((short)9, "timeToLive"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); static { for (_Fields field : EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NAME return NAME; case 2: // MAX_VERSIONS return MAX_VERSIONS; case 3: // COMPRESSION
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** * */ IS_ENABLED((short)1, "isEnabled"), /** * */ ANALYZER_DEFINITION((short)2, "analyzerDefinition"), /** * */ SHARD_COUNT((short)3, "shardCount"), /** * */ TABLE_URI((short)4, "tableUri"), /** * */ COMPRESSION_CLASS((short)5, "compressionClass"), /** * */ COMPRESSION_BLOCK_SIZE((short)6, "compressionBlockSize"), /** * */ CLUSTER((short)7, "cluster"),
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { UNREAD_MESSAGE_COUNT((short)1, "unreadMessageCount"), TOTAL_MESSAGES_LAST_HOUR((short)2, "totalMessagesLastHour"), TOTAL_MESSAGES_LAST24HRS((short)3, "totalMessagesLast24hrs"), RECENT_MESSAGES((short)4, "recentMessages"), NUMBER_OF_LOW_URGENCY_MESSAGES((short)5, "numberOfLowUrgencyMessages"), NUMBER_OF_MEDIUM_URGENCY_MESSAGES((short)6, "numberOfMediumUrgencyMessages"), NUMBER_OF_HIGH_URGENCY_MESSAGES((short)7, "numberOfHighUrgencyMessages"); private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>(); static { for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // UNREAD_MESSAGE_COUNT return UNREAD_MESSAGE_COUNT; case 2: // TOTAL_MESSAGES_LAST_HOUR return TOTAL_MESSAGES_LAST_HOUR; case 3: // TOTAL_MESSAGES_LAST24HRS return TOTAL_MESSAGES_LAST24HRS; case 4: // RECENT_MESSAGES
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { /** * */ SIMPLE_QUERY((short)1, "simpleQuery"), /** * */ EXPERT_QUERY((short)2, "expertQuery"), /** * */ FACETS((short)3, "facets"), /** * Selector is used to fetch data in the search results, if null only location ids will be fetched. */ SELECTOR((short)4, "selector"), /** * @deprecated This value is no longer used. This allows the query to see the most current data that has been added to the table. */ ALLOW_STALE_DATA((short)5, "allowStaleData"), /** * */ USE_CACHE_IF_PRESENT((short)6, "useCacheIfPresent"), /** * */ START((short)7, "start"),