Class: Impala::Protocol::HiveMetastore::ThriftHiveMetastore::IsPartitionMarkedForEvent_args

Inherits:
Object
  • Object
show all
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_fieldsObject



3908
# File 'lib/impala/protocol/thrift_hive_metastore.rb', line 3908

def struct_fields; FIELDS; end

#validateObject



3910
3911
3912
3913
3914
# File 'lib/impala/protocol/thrift_hive_metastore.rb', line 3910

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