Class: Storm::StreamInfo

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/storm/thrift/storm_types.rb

Constant Summary collapse

OUTPUT_FIELDS =
1
DIRECT =
2
FIELDS =
{
  OUTPUT_FIELDS => {:type => ::Thrift::Types::LIST, :name => 'output_fields', :element => {:type => ::Thrift::Types::STRING}},
  DIRECT => {:type => ::Thrift::Types::BOOL, :name => 'direct'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



193
# File 'lib/storm/thrift/storm_types.rb', line 193

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


195
196
197
198
# File 'lib/storm/thrift/storm_types.rb', line 195

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field output_fields is unset!') unless @output_fields
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field direct is unset!') if @direct.nil?
end