Class: Teapot::TempestDB::MonteCarloPageRankParams

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen/tempest_types.rb

Constant Summary collapse

NUMSTEPS =
1
RESETPROBABILITY =
2
MAXINTERMEDIATENODEDEGREE =
3
MINREPORTEDVISITS =
4
MAXRESULTCOUNT =
5
FIELDS =
{
  NUMSTEPS => {:type => ::Thrift::Types::I32, :name => 'numSteps'},
  RESETPROBABILITY => {:type => ::Thrift::Types::DOUBLE, :name => 'resetProbability'},
  MAXINTERMEDIATENODEDEGREE => {:type => ::Thrift::Types::I32, :name => 'maxIntermediateNodeDegree', :default => 1000, :optional => true},
  MINREPORTEDVISITS => {:type => ::Thrift::Types::I32, :name => 'minReportedVisits', :optional => true},
  MAXRESULTCOUNT => {:type => ::Thrift::Types::I32, :name => 'maxResultCount', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



56
# File 'lib/gen/tempest_types.rb', line 56

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


58
59
60
61
# File 'lib/gen/tempest_types.rb', line 58

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field numSteps is unset!') unless @numSteps
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field resetProbability is unset!') unless @resetProbability
end