Class: Hive::Thrift::Graph
- Inherits:
-
Object
- Object
- Hive::Thrift::Graph
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/thrift/queryplan_types.rb
Constant Summary collapse
- NODETYPE =
1
- ROOTS =
2
- ADJACENCYLIST =
3
- FIELDS =
{ NODETYPE => {:type => ::Thrift::Types::I32, :name => 'nodeType', :enum_class => ::Hive::Thrift::NodeType}, ROOTS => {:type => ::Thrift::Types::LIST, :name => 'roots', :element => {:type => ::Thrift::Types::STRING}}, ADJACENCYLIST => {:type => ::Thrift::Types::LIST, :name => 'adjacencyList', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Hive::Thrift::Adjacency}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
106 |
# File 'lib/thrift/queryplan_types.rb', line 106 def struct_fields; FIELDS; end |
#validate ⇒ Object
108 109 110 111 112 |
# File 'lib/thrift/queryplan_types.rb', line 108 def validate unless @nodeType.nil? || ::Hive::Thrift::NodeType::VALID_VALUES.include?(@nodeType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field nodeType!') end end |