Module: Riak

Extended by:
Util::Translation
Defined in:
lib/riak.rb,
lib/riak/json.rb,
lib/riak/link.rb,
lib/riak/node.rb,
lib/riak/stamp.rb,
lib/riak/bucket.rb,
lib/riak/client.rb,
lib/riak/cluster.rb,
lib/riak/robject.rb,
lib/riak/version.rb,
lib/riak/node/log.rb,
lib/riak/walk_spec.rb,
lib/riak/map_reduce.rb,
lib/riak/client/node.rb,
lib/riak/serializers.rb,
lib/riak/test_server.rb,
lib/riak/util/escape.rb,
lib/riak/node/console.rb,
lib/riak/node/control.rb,
lib/riak/node/version.rb,
lib/riak/client/search.rb,
lib/riak/node/defaults.rb,
lib/riak/failed_request.rb,
lib/riak/util/multipart.rb,
lib/riak/client/decaying.rb,
lib/riak/node/generation.rb,
lib/riak/map_reduce/phase.rb,
lib/riak/map_reduce_error.rb,
lib/riak/util/translation.rb,
lib/riak/node/configuration.rb,
lib/riak/client/http_backend.rb,
lib/riak/client/excon_backend.rb,
lib/riak/client/net_http_backend.rb,
lib/riak/client/beefcake/messages.rb,
lib/riak/client/feature_detection.rb,
lib/riak/client/protobuffs_backend.rb,
lib/riak/map_reduce/filter_builder.rb,
lib/riak/util/multipart/stream_parser.rb,
lib/riak/client/beefcake/object_methods.rb,
lib/riak/client/http_backend/key_streamer.rb,
lib/riak/client/http_backend/configuration.rb,
lib/riak/client/beefcake_protobuffs_backend.rb,
lib/riak/client/http_backend/object_methods.rb,
lib/riak/client/http_backend/request_headers.rb,
lib/riak/client/http_backend/transport_methods.rb,
lib/riak/util/headers.rb

Overview

The Riak module contains all aspects of the client interface to Riak.

Defined Under Namespace

Modules: JSON, Serializers, Util Classes: BackwardsClockError, Bucket, Client, Cluster, FailedRequest, HTTPFailedRequest, Link, MapReduce, MapReduceError, Node, ProtobuffsFailedRequest, RObject, Stamp, TestServer, WalkSpec

Constant Summary collapse

VERSION =
"1.0.7"

Class Attribute Summary collapse

Method Summary

Methods included from Util::Translation

i18n_scope, t

Class Attribute Details

.disable_list_keys_warningsObject

Only change this if you really know what you’re doing. Better to err on the side of caution and assume you don’t.



18
19
20
# File 'lib/riak.rb', line 18

def disable_list_keys_warnings
  @disable_list_keys_warnings
end

.escaperObject

See Also:

  • #escaper=


7
8
9
# File 'lib/riak/util/escape.rb', line 7

def escaper
  @escaper
end

.json_optionsObject

Options that will be passed to the JSON parser and encoder. Defaults to => 20



13
14
15
# File 'lib/riak/json.rb', line 13

def json_options
  @json_options
end

.url_decodingtrue, false

In Riak 1.0+, buckets and keys are decoded internally before being stored. This increases compatibility with the Protocol Buffers transport and reduces inconsistency of link-walking vs. regular operations. If the node you are connecting to has set on, set this to true. Default is false.

Returns:

  • (true, false)

    Whether Riak decodes URL-encoded paths and headers



30
31
32
# File 'lib/riak/util/escape.rb', line 30

def url_decoding
  @url_decoding
end