Class: Impala::Protocol::HiveMetastore::ThriftHiveMetastore::MarkPartitionForEvent_args
- Inherits:
-
Object
- Object
- Impala::Protocol::HiveMetastore::ThriftHiveMetastore::MarkPartitionForEvent_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/impala/protocol/thrift_hive_metastore.rb
Constant Summary collapse
- DB_NAME =
1
- TBL_NAME =
2
- PART_VALS =
3
- EVENTTYPE =
4
- FIELDS =
{ DB_NAME => { :type => ::Thrift::Types::STRING, :name => 'db_name' }, TBL_NAME => { :type => ::Thrift::Types::STRING, :name => 'tbl_name' }, PART_VALS => { :type => ::Thrift::Types::MAP, :name => 'part_vals', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } }, EVENTTYPE => { :type => ::Thrift::Types::I32, :name => 'eventType', :enum_class => Impala::Protocol::HiveMetastore::PartitionEventType } }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
3857 |
# File 'lib/impala/protocol/thrift_hive_metastore.rb', line 3857 def struct_fields; FIELDS; end |
#validate ⇒ Object
3859 3860 3861 3862 3863 |
# File 'lib/impala/protocol/thrift_hive_metastore.rb', line 3859 def validate unless @eventType.nil? || Impala::Protocol::HiveMetastore::PartitionEventType::VALID_VALUES.include?(@eventType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field eventType!') end end |