Class: HiveObjectRef
- Inherits:
-
Object
- Object
- HiveObjectRef
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/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 => ::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
105 |
# File 'lib/thrift/hive_metastore_types.rb', line 105 def struct_fields; FIELDS; end |
#validate ⇒ Object
107 108 109 110 111 |
# File 'lib/thrift/hive_metastore_types.rb', line 107 def validate unless @objectType.nil? || ::HiveObjectType::VALID_VALUES.include?(@objectType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field objectType!') end end |