Apresentador: Jeferson Ghisio
O que é?
O que é?
Características
• Availiability;
• Operational Simplicity;
• Scalability;
• Masterless;
Quando não utilizar?
Como funciona?
Bucket Chave
Como funciona?
Exemplos - Escrita
IRiakClient client = RiakFactory.pbcClient();
Bucket myBucket = client.fetchBucket("test").execute();
i...
Exemplos - Leitura
Integer fetched1 =
myBucket.fetch("one", Integer.class).execute();
IRiakObject fetched2 =
myBucket.fetc...
Exemplos - Delete
myBucket.delete("one").execute();
myBucket.delete("two").execute();
myBucket.delete("three").execute();
Opinião pessoal
Upcoming SlideShare
Loading in …5
×

RIAK

363 views

Published on

Apresentação sobre RIAK

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
363
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

RIAK

  1. 1. Apresentador: Jeferson Ghisio
  2. 2. O que é?
  3. 3. O que é?
  4. 4. Características • Availiability; • Operational Simplicity; • Scalability; • Masterless;
  5. 5. Quando não utilizar?
  6. 6. Como funciona? Bucket Chave
  7. 7. Como funciona?
  8. 8. Exemplos - Escrita IRiakClient client = RiakFactory.pbcClient(); Bucket myBucket = client.fetchBucket("test").execute(); int val1 = 1; -- Escrita myBucket.store("one", val1).execute(); String val2 = "two"; myBucket.store("two", val2).execute(); -- Update String val2 = "Two Two Two"; myBucket.store("two", val2).execute();
  9. 9. Exemplos - Leitura Integer fetched1 = myBucket.fetch("one", Integer.class).execute(); IRiakObject fetched2 = myBucket.fetch("two").execute(); assert(fetched1 == val1); assert(fetched2.getValueAsString().compareTo(val2) == 0);
  10. 10. Exemplos - Delete myBucket.delete("one").execute(); myBucket.delete("two").execute(); myBucket.delete("three").execute();
  11. 11. Opinião pessoal

×