Class: Adjacency

Inherits:
Object
  • Object
show all
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 => AdjacencyType}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



77
# File 'lib/thrift/queryplan_types.rb', line 77

def struct_fields; FIELDS; end

#validateObject



79
80
81
82
83
# File 'lib/thrift/queryplan_types.rb', line 79

def validate
  unless @adjacencyType.nil? || AdjacencyType::VALID_VALUES.include?(@adjacencyType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field adjacencyType!')
  end
end