Class: Hive::Thrift::Adjacency
- Inherits:
-
Object
- Object
- Hive::Thrift::Adjacency
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/queryplan_types.rb
Constant Summary collapse
- NODE =
1
- CHILDREN =
2
- ADJACENCYTYPE =
3
- FIELDS =
{ NODE => {:type => ::Thrift::Types::STRING, :name => 'node'}, CHILDREN => {:type => ::Thrift::Types::LIST, :name => 'children', :element => {:type => ::Thrift::Types::STRING}}, ADJACENCYTYPE => {:type => ::Thrift::Types::I32, :name => 'adjacencyType', :enum_class => ::Hive::Thrift::AdjacencyType} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
83 |
# File 'lib/thrift/queryplan_types.rb', line 83 def struct_fields; FIELDS; end |
#validate ⇒ Object
85 86 87 88 89 |
# File 'lib/thrift/queryplan_types.rb', line 85 def validate unless @adjacencyType.nil? || ::Hive::Thrift::AdjacencyType::VALID_VALUES.include?(@adjacencyType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field adjacencyType!') end end |