This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/main/java/com/basho/riak/pbc/RiakObject.java | |
=================================================================== | |
--- src/main/java/com/basho/riak/pbc/RiakObject.java (revision 84) | |
+++ src/main/java/com/basho/riak/pbc/RiakObject.java (revision 125) | |
@@ -244,4 +244,8 @@ | |
return d; | |
} | |
+ public String getContentType() { | |
+ return contentType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
%% ex: ts=4 sw=4 et | |
[ | |
{default_bucket_props, [{n_val,1}, | |
{allow_mult,false}, | |
{last_write_wins,false}, | |
{precommit, []}, | |
{postcommit, []}, | |
{chash_keyfun, {riak_core_util, chash_std_keyfun}}, | |
{linkfun, {modfun, riak_kv_wm_link_walker, mapreduce_linkfun}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Groovy also has a Time Category class which gives you DSL style syntax for manipulating dates. Here is an example: | |
import org.codehaus.groovy.runtime.TimeCategory | |
now = new Date() | |
println now | |
use(TimeCategory) { | |
footballPractice = now + 1.week - 4.days + 2.hours - 3.seconds | |
} | |
println footballPractice | |
which will produce output like this: |
NewerOlder