Class: Hive2::Thrift::TGetFunctionsReq
- Inherits:
-
Object
- Object
- Hive2::Thrift::TGetFunctionsReq
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/t_c_l_i_service_types.rb
Constant Summary collapse
- SESSIONHANDLE =
1
- CATALOGNAME =
2
- SCHEMANAME =
3
- FUNCTIONNAME =
4
- FIELDS =
{ SESSIONHANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'sessionHandle', :class => ::Hive2::Thrift::TSessionHandle}, CATALOGNAME => {:type => ::Thrift::Types::STRING, :name => 'catalogName', :optional => true}, SCHEMANAME => {:type => ::Thrift::Types::STRING, :name => 'schemaName', :optional => true}, FUNCTIONNAME => {:type => ::Thrift::Types::STRING, :name => 'functionName'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1249 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1249 def struct_fields; FIELDS; end |
#validate ⇒ Object
1251 1252 1253 1254 |
# File 'lib/thrift/t_c_l_i_service_types.rb', line 1251 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sessionHandle is unset!') unless @sessionHandle raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field functionName is unset!') unless @functionName end |