Skip to content

wikis Search Results · bucket language:JavaScript language:Java language:JavaScript language:JavaScript

45.6k results  (297 ms)

45.6k results

The language qualifier is not supported when searching wikis. Try searching for repositories instead?

Exporting Data from a Bucket to a Directory Source File on GitHub This Erlang function allows you to export the contents of a bucket to a directory on the the filesystem, you can export the entire ...

Importing a Directory of Files Source File on GitHub This Erlang function allows you to import the contents of a directory (recursively) into a bucket, you will need to specify the content type of ...

Forcing Read Repair on a Bucket Source File on GitHub This Erlang function will read every key in a bucket and force read-repair on that bucket. The function takes the 2 arguments ...

Copying a Bucket Source File on GitHub This Erlang function can be used to copy all or some contents of a bucket from one Riak cluster to another. It can also be used to copy one bucket to another ...

desc: checks if the given object is a bucket or not returns: Boolean args: Object local bucket = Bucket.new({ 1, 2, 3 }) local nonbucket = { 1, 2, 3 } Bucket.is(bucket) -- true Bucket.is(nonbucket) -- false

desc: makes a new bucket returns: Bucket: Table args: Insides: Table local bucket = Bucket.new({ -- unis "abc", 123, { "a", "b", "c" }, -- pairs { key1 = "value1" }, { key2 = 2 }, { key3 = { "a", "b", "c" }} })

desc: makes a new bucket without the pair formatting (not recommended) returns: Bucket: Table args: Insides: Table

desc: splits a string into a new bucket returns: Bucket: Table args: Insides: String, Splitter: String Bucket.split("abc 123") -- (( "a", "b", "c", " ", "1", "2", "3" )) Bucket.split("abc 123", " ") -- (( "abc" "123" ))

desc: adds a new entry at the given index returns: None args: Index: Number Entry: Object bucket:Append(1, "value") -- uni bucket:Append(1, { key = "value" }) -- pair

desc: returns the value at an index returns: Value: Object args: Index: Number local bucket = Bucket.new({ "abc", { key = "value" } }) bucket:At(1) -- "abc" bucket:At(2) -- "value"