lib/riak/search/result_document.rb in riak-client-2.4.1 vs lib/riak/search/result_document.rb in riak-client-2.5.0

- old
+ new

@@ -90,9 +90,18 @@ # @raise [Riak::CrdtError::UnexpectedDataType] if the CRDT is not a set def set return crdt if check_type_class Riak::Crdt::Set end + # If the result document describes a set, return it. + # + # @return [Riak::Crdt::HyperLogLog] + # @raise [Riak::CrdtError::NotACrdt] if the result is not a CRDT + # @raise [Riak::CrdtError::UnexpectedDataType] if the CRDT is not a hyper_log_log + def hyper_log_log + return crdt if check_type_class Riak::Crdt::HyperLogLog + end + # Provides access to other parts of the result document without # materializing them. Useful when querying non-default fields. # # @return [String,Numeric] other search result document field def [](field_name)