Class: Impala::Protocol::HiveMetastore::HiveObjectRef

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/impala/protocol/hive_metastore_types.rb

Constant Summary collapse

OBJECTTYPE =
1
DBNAME =
2
OBJECTNAME =
3
PARTVALUES =
4
COLUMNNAME =
5
FIELDS =
{
OBJECTTYPE => { :type => ::Thrift::Types::I32, :name => 'objectType', :enum_class => Impala::Protocol::HiveMetastore::HiveObjectType },
DBNAME => { :type => ::Thrift::Types::STRING, :name => 'dbName' },
OBJECTNAME => { :type => ::Thrift::Types::STRING, :name => 'objectName' },
PARTVALUES => { :type => ::Thrift::Types::LIST, :name => 'partValues', :element => { :type => ::Thrift::Types::STRING } },
COLUMNNAME => { :type => ::Thrift::Types::STRING, :name => 'columnName' }
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



111
# File 'lib/impala/protocol/hive_metastore_types.rb', line 111

def struct_fields; FIELDS; end

#validateObject



113
114
115
116
117
# File 'lib/impala/protocol/hive_metastore_types.rb', line 113

def validate
  unless @objectType.nil? || Impala::Protocol::HiveMetastore::HiveObjectType::VALID_VALUES.include?(@objectType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field objectType!')
  end
end