- Constructing Riak DAOs
- Using Riak as a CR system (for immutable data)
- SQL migration
- Column store
- Document store
- Instructions to install Java 7 followed by a
java -version
command that yields Java 8 is a bit odd. I'd recommend providing sample output for Java 7 instead. - Might be a good idea to provide example commands for installing via Homebrew, yum, apt-get, etc.
- For code snippets inside of paragraphs, it's always helpful IMHO to distinguish the code bits from the ordinary language bits.
/usr/local
in the middle of a paragraph always comes across as more clear than /usr/local. - You should also provide instructions on adding directories to
PATH
, restarting the shell, and checking to make sure that the directory has been added, i.e.echo $PATH
. I know that's super basic stuff, but the install guide should be the most dumbed down part of the book. Experienced users will know to skip over this. - I see later on, on page 5, that "println()" is in a code-specific font, as it should be. Make sure to keep this consistent. I see this pop up in a vari
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
import com.basho.riak.client.api.RiakClient; | |
import com.basho.riak.client.api.commands.kv.FetchValue; | |
import com.basho.riak.client.core.query.Location; | |
import com.basho.riak.client.core.query.Namespace; | |
import com.google.common.base.Optional; | |
import java.util.concurrent.ExecutionException; | |
public class RiakDAO<T> { | |
private final RiakClient client; |
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
public class Foo { | |
String word; | |
public Foo(String word) { | |
this.word = word; | |
} | |
} | |
public class FooUpdate extends Update<Foo> { | |
private Foo newFoo; |
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
public class Person { | |
private String name; | |
private int age; | |
public Person() {} | |
public Person(String name, int age) { | |
this.name = name; | |
this.age = age; | |
} |
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
package tutorial; | |
import backtype.storm.metric.api.GlobalMetrics; | |
import org.apache.storm.Config; | |
import org.apache.storm.LocalCluster; | |
import org.apache.storm.StormSubmitter; | |
import org.apache.storm.spout.SpoutOutputCollector; | |
import org.apache.storm.task.OutputCollector; | |
import org.apache.storm.task.TopologyContext; | |
import org.apache.storm.topology.OutputFieldsDeclarer; |
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
PulsarClient client = PulsarClient.builder() | |
.serviceUrl("pulsar://localhost:6650") | |
.build(); | |
Producer<SensorReading> producer = | |
client.newProducer(JSONSchema.of(SensorReading.class)) | |
.topic("sensor-data") | |
.create(); | |
Consumer<SensorReading> consumer = |
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
/* | |
{{- if ne (getenv "HUGO_ENV") "production" }} | |
X-Robots-Tag: noindex | |
{{- end }} |
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
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 8080 } | |
filter_chains: | |
- filters: | |
- name: envoy.http_connection_manager | |
config: | |
codec_type: auto |