Class: Impala::Protocol::HiveMetastore::HiveObjectRef
- Inherits:
-
Object
- Object
- Impala::Protocol::HiveMetastore::HiveObjectRef
- 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_fields ⇒ Object
112 |
# File 'lib/impala/protocol/hive_metastore_types.rb', line 112 def struct_fields; FIELDS; end |
#validate ⇒ Object
114 115 116 117 118 |
# File 'lib/impala/protocol/hive_metastore_types.rb', line 114 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 |