SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Workshop
desarrollo Cassandra
Java
José Hernández
Isthari
jose.Hernandez@isthari.com
Dependencias
 Maven
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-core</artifactId>
<version>2.0.1</version>
</dependency>
Cluster de cassandra
Conexión
 Cluster
Cluster cluster = Cluster.builder()
.addContactPoint(“10.202.203.105")
.addContactPoint(“10.202.203.106")
.build();
Conexión
 Cluster
Cluster cluster = Cluster.builder()
.addContactPoint(“10.202.203.105")
.addContactPoint(“10.202.203.106")
.build();
 Auto – discover
New Cassandra host /10.202.203.108
New Cassandra host /10.202.203.109
New Cassandra host /10.202.203.111
…
Desconexión
 Cluster
Cluster cluster = Cluster.builder()
.addContactPoint(“10.202.203.105")
.addContactPoint(“10.202.203.106")
.build();
 Desconectar
Cluster.close();
Statements
 Conectar a un keyspace
Session session = cluster.connect("webinar");
Statements
 Conectar a un keyspace
Session session = cluster.connect("webinar");
 DDL
session.execute("create table usuarios
( id uuid , nombre text, primary key (id)) ");
Statements
 Conectar a un keyspace
Session session = cluster.connect("webinar");
 DDL
session.execute("create table usuarios
( id uuid , nombre text, primary key (id)) ");
 DML
session.execute("insert into usuarios (id, nombre)
values (18c8dfee-…, 'Juan')");
Query
ResultSet resultSet = session.execute("select * from usuarios");
Query
ResultSet resultSet = session.execute("select * from usuarios");
for (Row row : resultSet){
…
}
Query
ResultSet resultSet = session.execute("select * from usuarios");
for (Row row : resultSet){
LOGGER.info(row.getUUID("id")+" - "+
row.getString("nombre"));
}
Bound statement
PreparedStatement stmt = session.prepare(
"insert into usuarios (id, nombre) values (?,?)");
Bound statement
PreparedStatement stmt = session.prepare(
"insert into usuarios (id, nombre) values (?,?)");
session.execute(
stmt.bind(UUID.randomUUID(), "Jose"));
Async queries
Async queries
Async queries
ResultSetFuture resultSet1 = session.executeAsync("select …
ResultSetFuture resultSet2 = session.executeAsync("select …
ResultSetFuture resultSet3 = session.executeAsync("select …
Async queries
ResultSetFuture resultSet1 = session.executeAsync("select …
ResultSetFuture resultSet2 = session.executeAsync("select …
ResultSetFuture resultSet3 = session.executeAsync("select …
for (Row row : resultSet1.getUninterruptibly()){
...
}
Async queries
ResultSetFuture resultSet1 = session.executeAsync("select …
ResultSetFuture resultSet2 = session.executeAsync("select …
ResultSetFuture resultSet3 = session.executeAsync("select …
for (Row row : resultSet1.getUninterruptibly()){
...
}
for (Row row : resultSet2
.getUninterruptibly(1000, TimeUnit.MILLISECONDS)){
...
}
Query builder
Statement stmt1 = QueryBuilder
.select()
Query builder
Statement stmt1 = QueryBuilder
.select()
.from("usuarios")
Query builder
Statement stmt1 = QueryBuilder
.select()
.from("usuarios")
.where(eq("id", UUID.fromString("0bd4f5c9…")));
Query builder
Statement stmt1 = QueryBuilder
.select()
.from("usuarios")
.where(eq("id", UUID.fromString("0bd4f5c9…")));
session.execute(stmt1);
Query builder
Statement stmt = QueryBuilder.insertInto(“usuarios")
Query builder
Statement stmt = QueryBuilder.insertInto(“usuarios")
.value("id", UUID.randomUUID())
.value(“nombre", “Felipe")
Query builder
Statement stmt = QueryBuilder.insertInto(“usuarios")
.value("id", UUID.randomUUID())
.value(“nombre", “Felipe")
.setConsistencyLevel(ConsistencyLevel.ANY)
Query builder
Statement stmt = QueryBuilder.insertInto(“usuarios")
.value("id", UUID.randomUUID())
.value(“nombre", “Felipe")
.setConsistencyLevel(ConsistencyLevel.ANY);
session.execute(stmt);
Tracing
stmt.enableTracing();
ExecutionInfo info = session.execute(stmt).getExecutionInfo();
QueryTrace trace = info.getQueryTrace ();
Load balancing policy
 RoundRobinPolicy
 DCAwareRoundRobinPolicy
 TokenAware
Load balancing policy
 RoundRobinPolicy
 DCAwareRoundRobinPolicy
 TokenAware
Ejemplo: DCAwareRoundRobinPolicy
Cluster cluster = Cluster.builder()
…
.withLoadBalancingPolicy(
new DCAwareRoundRobinPolicy("localDC"))
Preguntas y sugerencias
Gracias por asistir

Weitere ähnliche Inhalte

Was ist angesagt?

Advanced Data Modeling with Apache Cassandra
Advanced Data Modeling with Apache CassandraAdvanced Data Modeling with Apache Cassandra
Advanced Data Modeling with Apache Cassandra
DataStax Academy
 

Was ist angesagt? (20)

Coursera Cassandra Driver
Coursera Cassandra DriverCoursera Cassandra Driver
Coursera Cassandra Driver
 
Puppet and Apache CloudStack
Puppet and Apache CloudStackPuppet and Apache CloudStack
Puppet and Apache CloudStack
 
MonkeyMan – a Perl5 framework for Apache CloudStack automation
MonkeyMan – a Perl5 framework for Apache CloudStack automation MonkeyMan – a Perl5 framework for Apache CloudStack automation
MonkeyMan – a Perl5 framework for Apache CloudStack automation
 
Hdf installing-hdf
Hdf installing-hdfHdf installing-hdf
Hdf installing-hdf
 
Cassandra 3.0 Data Modeling
Cassandra 3.0 Data ModelingCassandra 3.0 Data Modeling
Cassandra 3.0 Data Modeling
 
Neil Desai - Data Driven Analytics
Neil Desai - Data Driven AnalyticsNeil Desai - Data Driven Analytics
Neil Desai - Data Driven Analytics
 
Issuing temporary credentials for my sql using hashicorp vault
Issuing temporary credentials for my sql using hashicorp vaultIssuing temporary credentials for my sql using hashicorp vault
Issuing temporary credentials for my sql using hashicorp vault
 
Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016Codership's galera cluster installation and quickstart webinar march 2016
Codership's galera cluster installation and quickstart webinar march 2016
 
Vault - Secret and Key Management
Vault - Secret and Key ManagementVault - Secret and Key Management
Vault - Secret and Key Management
 
Deploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab FacilitiesDeploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab Facilities
 
Advanced Data Modeling with Apache Cassandra
Advanced Data Modeling with Apache CassandraAdvanced Data Modeling with Apache Cassandra
Advanced Data Modeling with Apache Cassandra
 
Meetup - DevCloud and CloudStack 4.2
Meetup - DevCloud and CloudStack 4.2Meetup - DevCloud and CloudStack 4.2
Meetup - DevCloud and CloudStack 4.2
 
Quick MySQL performance check
Quick MySQL performance checkQuick MySQL performance check
Quick MySQL performance check
 
Hands-on Lab: re-Modernize - Updating and Consolidating MySQL
Hands-on Lab: re-Modernize - Updating and Consolidating MySQLHands-on Lab: re-Modernize - Updating and Consolidating MySQL
Hands-on Lab: re-Modernize - Updating and Consolidating MySQL
 
Chickens & Eggs: Managing secrets in AWS with Hashicorp Vault
Chickens & Eggs: Managing secrets in AWS with Hashicorp VaultChickens & Eggs: Managing secrets in AWS with Hashicorp Vault
Chickens & Eggs: Managing secrets in AWS with Hashicorp Vault
 
Philly security shell meetup
Philly security shell meetupPhilly security shell meetup
Philly security shell meetup
 
A quick tour of Mysql 8 roles
A quick tour of Mysql 8 rolesA quick tour of Mysql 8 roles
A quick tour of Mysql 8 roles
 
Dynamic Database Credentials: Security Contingency Planning
Dynamic Database Credentials: Security Contingency PlanningDynamic Database Credentials: Security Contingency Planning
Dynamic Database Credentials: Security Contingency Planning
 
HashiCorp's Vault - The Examples
HashiCorp's Vault - The ExamplesHashiCorp's Vault - The Examples
HashiCorp's Vault - The Examples
 
How to deploy spark instance using ansible 2.0 in fiware lab v2
How to deploy spark instance using ansible 2.0 in fiware lab v2How to deploy spark instance using ansible 2.0 in fiware lab v2
How to deploy spark instance using ansible 2.0 in fiware lab v2
 

Andere mochten auch

Common Online Terminologies
Common Online TerminologiesCommon Online Terminologies
Common Online Terminologies
bea manalo
 
ловушки егэ
ловушки егэловушки егэ
ловушки егэ
metodist4560
 
Turtle/Tortoise Book
Turtle/Tortoise BookTurtle/Tortoise Book
Turtle/Tortoise Book
Missbrearley
 
Clinical practice guidelines for mild traumatic
Clinical practice guidelines for mild traumaticClinical practice guidelines for mild traumatic
Clinical practice guidelines for mild traumatic
Richard Radecki
 

Andere mochten auch (20)

Strawberries: Organic Production
Strawberries: Organic ProductionStrawberries: Organic Production
Strawberries: Organic Production
 
Common Online Terminologies
Common Online TerminologiesCommon Online Terminologies
Common Online Terminologies
 
5 Tips For Preventing Ransomware On Your Network
5 Tips For Preventing Ransomware On Your Network5 Tips For Preventing Ransomware On Your Network
5 Tips For Preventing Ransomware On Your Network
 
Erno välimäki a5mainos
Erno välimäki a5mainosErno välimäki a5mainos
Erno välimäki a5mainos
 
пушкин а. с.
пушкин а. с.пушкин а. с.
пушкин а. с.
 
Organic Field Corn Production
Organic Field Corn ProductionOrganic Field Corn Production
Organic Field Corn Production
 
Ricardo oscar keith
Ricardo oscar keithRicardo oscar keith
Ricardo oscar keith
 
Workshop administracion cassandra
Workshop administracion cassandraWorkshop administracion cassandra
Workshop administracion cassandra
 
ловушки егэ
ловушки егэловушки егэ
ловушки егэ
 
Turtle/Tortoise Book
Turtle/Tortoise BookTurtle/Tortoise Book
Turtle/Tortoise Book
 
Designing Organic Edible Landscaping
Designing Organic Edible LandscapingDesigning Organic Edible Landscaping
Designing Organic Edible Landscaping
 
Denuncia licencia de armas
Denuncia licencia de armasDenuncia licencia de armas
Denuncia licencia de armas
 
Objetos policiales sup
Objetos policiales  supObjetos policiales  sup
Objetos policiales sup
 
Symphylans: Soil Pest Management Options
Symphylans: Soil Pest Management OptionsSymphylans: Soil Pest Management Options
Symphylans: Soil Pest Management Options
 
Thrips Management Alternatives in the Field
Thrips Management Alternatives in the FieldThrips Management Alternatives in the Field
Thrips Management Alternatives in the Field
 
Specialty Lettuce and Greens: Organic Production
Specialty Lettuce and Greens: Organic ProductionSpecialty Lettuce and Greens: Organic Production
Specialty Lettuce and Greens: Organic Production
 
Finding Land to Farm: Six Ways to Secure Farmland
Finding Land to Farm: Six Ways to Secure Farmland Finding Land to Farm: Six Ways to Secure Farmland
Finding Land to Farm: Six Ways to Secure Farmland
 
Pastures: Sustainable Management
Pastures: Sustainable ManagementPastures: Sustainable Management
Pastures: Sustainable Management
 
Clinical practice guidelines for mild traumatic
Clinical practice guidelines for mild traumaticClinical practice guidelines for mild traumatic
Clinical practice guidelines for mild traumatic
 
Pv day frankfurt june 2015 zittartz presentation
Pv day frankfurt june 2015 zittartz presentationPv day frankfurt june 2015 zittartz presentation
Pv day frankfurt june 2015 zittartz presentation
 

Ähnlich wie Workshop desarrollo Cassandra con el driver Java

AtlasCamp 2010: Understanding the Atlassian Platform - Tim Pettersen
AtlasCamp 2010: Understanding the Atlassian Platform - Tim PettersenAtlasCamp 2010: Understanding the Atlassian Platform - Tim Pettersen
AtlasCamp 2010: Understanding the Atlassian Platform - Tim Pettersen
Atlassian
 
Store and Process Big Data with Hadoop and Cassandra
Store and Process Big Data with Hadoop and CassandraStore and Process Big Data with Hadoop and Cassandra
Store and Process Big Data with Hadoop and Cassandra
Deependra Ariyadewa
 
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
Carlos Sanchez
 
Cloudcamp scotland - Using cloud without losing control
Cloudcamp scotland - Using cloud without losing controlCloudcamp scotland - Using cloud without losing control
Cloudcamp scotland - Using cloud without losing control
Duncan Johnston-Watt
 

Ähnlich wie Workshop desarrollo Cassandra con el driver Java (20)

Gradle 2.2, 2.3 news #jggug
Gradle 2.2, 2.3 news #jggugGradle 2.2, 2.3 news #jggug
Gradle 2.2, 2.3 news #jggug
 
AtlasCamp 2010: Understanding the Atlassian Platform - Tim Pettersen
AtlasCamp 2010: Understanding the Atlassian Platform - Tim PettersenAtlasCamp 2010: Understanding the Atlassian Platform - Tim Pettersen
AtlasCamp 2010: Understanding the Atlassian Platform - Tim Pettersen
 
Store and Process Big Data with Hadoop and Cassandra
Store and Process Big Data with Hadoop and CassandraStore and Process Big Data with Hadoop and Cassandra
Store and Process Big Data with Hadoop and Cassandra
 
Introduction to .Net Driver
Introduction to .Net DriverIntroduction to .Net Driver
Introduction to .Net Driver
 
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
 
NYC Cassandra Day - Java Intro
NYC Cassandra Day - Java IntroNYC Cassandra Day - Java Intro
NYC Cassandra Day - Java Intro
 
Iteratively Develop Microservices with Speed on Kubernetes
Iteratively Develop Microservices with Speed on KubernetesIteratively Develop Microservices with Speed on Kubernetes
Iteratively Develop Microservices with Speed on Kubernetes
 
Advanced Cassandra
Advanced CassandraAdvanced Cassandra
Advanced Cassandra
 
Cloudcamp scotland - Using cloud without losing control
Cloudcamp scotland - Using cloud without losing controlCloudcamp scotland - Using cloud without losing control
Cloudcamp scotland - Using cloud without losing control
 
SCasia 2018 MSFT hands on session for Azure Batch AI
SCasia 2018 MSFT hands on session for Azure Batch AISCasia 2018 MSFT hands on session for Azure Batch AI
SCasia 2018 MSFT hands on session for Azure Batch AI
 
Maven + Jsf + Richfaces + Jxl + Jdbc - Complete Code Example
Maven + Jsf + Richfaces + Jxl + Jdbc - Complete Code ExampleMaven + Jsf + Richfaces + Jxl + Jdbc - Complete Code Example
Maven + Jsf + Richfaces + Jxl + Jdbc - Complete Code Example
 
OpenSource ToolChain for the Hybrid Cloud
OpenSource ToolChain for the Hybrid CloudOpenSource ToolChain for the Hybrid Cloud
OpenSource ToolChain for the Hybrid Cloud
 
Antons Kranga Building Agile Infrastructures
Antons Kranga   Building Agile InfrastructuresAntons Kranga   Building Agile Infrastructures
Antons Kranga Building Agile Infrastructures
 
Automating Azure VMs with PowerShell
Automating Azure VMs with PowerShellAutomating Azure VMs with PowerShell
Automating Azure VMs with PowerShell
 
Azure from scratch part 4
Azure from scratch part 4Azure from scratch part 4
Azure from scratch part 4
 
Continuous Delivery: The Next Frontier
Continuous Delivery: The Next FrontierContinuous Delivery: The Next Frontier
Continuous Delivery: The Next Frontier
 
Take Control of your Integration Testing with TestContainers
Take Control of your Integration Testing with TestContainersTake Control of your Integration Testing with TestContainers
Take Control of your Integration Testing with TestContainers
 
DataStax NYC Java Meetup: Cassandra with Java
DataStax NYC Java Meetup: Cassandra with JavaDataStax NYC Java Meetup: Cassandra with Java
DataStax NYC Java Meetup: Cassandra with Java
 
OSGi framework overview
OSGi framework overviewOSGi framework overview
OSGi framework overview
 
GradleFX
GradleFXGradleFX
GradleFX
 

Kürzlich hochgeladen

The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Kürzlich hochgeladen (20)

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 

Workshop desarrollo Cassandra con el driver Java