Class: Couchbase::Cluster::SearchMetrics

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/search_options.rb
more...

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_partition_countInteger

Returns:

  • (Integer)

1538
1539
1540
# File 'lib/couchbase/search_options.rb', line 1538

def error_partition_count
  @error_partition_count
end

#max_scoreFloat

Returns:

  • (Float)

1532
1533
1534
# File 'lib/couchbase/search_options.rb', line 1532

def max_score
  @max_score
end

#success_partition_countInteger

Returns:

  • (Integer)

1535
1536
1537
# File 'lib/couchbase/search_options.rb', line 1535

def success_partition_count
  @success_partition_count
end

#tookInteger

Returns time spent executing the query (in milliseconds).

Returns:

  • (Integer)

    time spent executing the query (in milliseconds)


1526
1527
1528
# File 'lib/couchbase/search_options.rb', line 1526

def took
  @took
end

#total_rowsInteger

Returns:

  • (Integer)

1529
1530
1531
# File 'lib/couchbase/search_options.rb', line 1529

def total_rows
  @total_rows
end

Instance Method Details

#total_partition_countInteger

Returns:

  • (Integer)
[View source]

1541
1542
1543
# File 'lib/couchbase/search_options.rb', line 1541

def total_partition_count
  success_partition_count + error_partition_count
end