class Fluent::RedisMultiTypeCounterOutput::RecordKey

Attributes

count_hash_key[R]
count_key[R]
count_zset_key[R]
store_list[R]

Public Class Methods

new(count_key, count_hash_key, count_zset_key, store_list) click to toggle source
# File lib/fluent/plugin/out_redis_multi_type_counter.rb, line 105
def initialize(count_key, count_hash_key, count_zset_key, store_list)
  @count_key = count_key
  @count_hash_key = count_hash_key
  @count_zset_key = count_zset_key
  @store_list = store_list
end

Public Instance Methods

eql?(other) click to toggle source
# File lib/fluent/plugin/out_redis_multi_type_counter.rb, line 125
def eql?(other)
  return @count_key.eql?(other.count_key) && @count_hash_key.eql?(other.count_hash_key) && 
    @count_zset_key.eql?(other.count_zset_key)
end
hash() click to toggle source
# File lib/fluent/plugin/out_redis_multi_type_counter.rb, line 112
def hash
  hash_key = ""

  keys = [@count_key, @count_hash_key, @count_zset_key]
  keys.select { |key| 
    key != nil
  }.each { |key|
    hash_key += ("@@@@" + key)
  }

  hash_key.hash
end