Class: Impala::Protocol::HiveMetastore::ThriftHiveMetastore::List_privileges_args
- Inherits:
-
Object
- Object
- Impala::Protocol::HiveMetastore::ThriftHiveMetastore::List_privileges_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/thrift_hive_metastore.rb
Constant Summary collapse
- PRINCIPAL_NAME =
1
- PRINCIPAL_TYPE =
2
- HIVEOBJECT =
3
- FIELDS =
{ PRINCIPAL_NAME => { :type => ::Thrift::Types::STRING, :name => 'principal_name' }, PRINCIPAL_TYPE => { :type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => Impala::Protocol::HiveMetastore::PrincipalType }, HIVEOBJECT => { :type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => Impala::Protocol::HiveMetastore::HiveObjectRef } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
4468 |
# File 'lib/impala/protocol/thrift_hive_metastore.rb', line 4468 def struct_fields; FIELDS; end |
#validate ⇒ Object
4470 4471 4472 4473 4474 |
# File 'lib/impala/protocol/thrift_hive_metastore.rb', line 4470 def validate unless @principal_type.nil? || Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@principal_type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!') end end |