Easy-Cassandra User Guide

Size: px
Start display at page:

Download "Easy-Cassandra User Guide"

Transcription

1 Easy-Cassandra User Guide Document version: 005 1

2 Summary About Easy-Cassandra...5 Features...5 Java Objects Supported...5 About Versions...6 Version: Version: Version: Version: Version: Version: Version: Version: Version: Version: Beyond version...7 For use the Easy-Cassandra is necessary:...7 The Thrift's dependence:...7 Maven:...8 Annotations...10 Used in Class...10 Entity:...10 MappedSuperclass:...10 Used in Field...11 Column:...11 Embedded:...11 Enumerated:...11 Version...12 Index:...12 Id:...12 Complete Example with Annotation...13 Commands...13 Consistency Level...13 Enum Options:...13 ONE:...13 QUORUM...14 ALL...14 DCQUORUM...14 DCQUORUMSYNC...15 The class org.easycassandra.persistence.easycassandramanager...16 Client getclient(string keyspace, String host, int port)...16 Persistence getpersistence(string keyspace, String host, int port)...16 boolean addfamilyobject(class<?> classcolumnfamily)...16 The class org.easycassandra.persistence.persistence...17 Insert Commands...18 insert(object object, ConsistencyLevelCQL consistencylevel)...18 insert(object object)...18 Remove Commands...18 delete(object object)...18 Document version: 005 2

3 deletebyid(object Id, Class objectclass)...18 Update Commands...18 update(object object, ConsistencyLevel consistencylevel)...19 update(object object, ConsistencyLevel consistencylevel)...19 List Commands...19 findall(class persistenceclass, ConsistencyLevelCQL consistencylevel, int limit)...19 findall(class persistenceclass, ConsistencyLevelCQL consistencylevel)...19 findall(class persistenceclass, int limit)...19 findall(class persistenceclass)...20 findbyindex(object index, Class objectclass, ConsistencyLevelCQL consistencylevelcql, int limit)...20 findbyindex(class persistenceclass, ConsistencyLevelCQL consistencylevel)...20 findbyindex(class persistenceclass, int limit)...20 findbyindex(class persistenceclass)...20 Retrieve from Key row Commands...21 findbykey(object key, Class persistenceclass, ConsistencyLevelCQL consistencylevel)...21 findbykey(object key, Class persistenceclass)...21 findbykeyin(class baseclass,consistencylevelcql consistencylevel,object... keys)...21 findbykeyin(class baseclass, Object... keys)...21 Count Commands...21 count(class<?> clazz,consistencylevelcql consistencylevel)...21 count(class clazz)...22 Sample Abstract DAO...23 Native Commands...25 Get Thrift Client...25 Get Thrift Client in Current Persistence...25 Execute Cassandra Query Language...25 executeupdatecql(string query)...25 executecql(string query)...25 The class org.easycassandra.persistence.jcassandra...26 Add Class for Easy-Cassandra to manager...26 EasyCassandraManager.addFamilyObject(Class<?> classcolumnfamily)...26 Persistence.createJCassandra(String cql)...26 List getresultlist()...26 setfirstresult(int startposition);...27 int getfirstresult();...27 setmaxresults(int maxresult);...27 int getmaxresults();...27 setparameter(string name, Object value);...27 Set<Parameter<?>> getparameters();...28 Parameter<?> getparameter(int position);...28 Parameter<?> getparameter(string name);...28 Object getsingleresult();...28 boolean executeupdate();...28 JPQL in Cassandra Commands...29 Retrieve Objects...29 Select the Object...29 Select some fields in the Object...29 Document version: 005 3

4 Count number of row in Object...29 Delete Objects...30 remove the Object...30 remove some fields in the Object...30 Update Objects...31 update some fields in the Object...31 How to Contribute with this project...32 Article:...32 Document version: 005 4

5 About Easy-Cassandra Easy-Cassandra is a framework ORM API and a high client for Apache Cassandra in java, with this is possible persist information from the Java Object in easy way. For this is only necessary add some annotations in some fields and your class. It works like an abstraction's tier in the Thrift, doing call for Cassandra. The Easy-Cassandra uses the Thrift implementation and has like the main objective be one simple ORM (Object relational manager). It need the jdk 7 for run, because some parts in your code was replaced reflection for invoke dynamic. So will have a behavior faster than other framework. The Easy-Cassandra was the first framework compatible with Cassandra version above 0.8 and the first one to use CQL (Cassandra Query Language). For read a class, it use the invokedynamic, fifteen time faster than reflection. Site: Download: Features An ORM easy to use in Cassandra Use the JPQL Need only use some Annotations in a class to persist Persists many Java Objects in way extremely easy (e.g: all primitives types, java.lang.string, java.lang.bigdecimal, java.io.file, etc.). Read and Write in Cassandra with Level Consistency. The first framework ORM in Cassandra to compatibles with version above The first to use CQL compatible with CQL 2.0 The first to use invokedynamic instead to reflection In the Apache version 2.0 license Supporting JPA 2.0 annotation Supporting Java Query Language in Cassandra Java Objects Supported The Easy-Cassandra has support for the Object java bellow: all primitives types (int, long, float, double, short, byte, boolean) java.lang.boolean java.util.date java.lang.double java.lang.float java.lang.integer java.lang.long java.lang.string java.lang.boolean java.lang.byte Document version: 005 5

6 java.lang.short java.lang.character java.io.file java.nio.file.path About Versions The current and stable version is Version: Client for many Client in sequencial mode Client for many Client in sequencial random DownGrade to java 6 create keyspace automatically do single client Version: Supporting at jpa 2.0 annotation Query with objects Version to retrieve the timestamp of the object Using the JPQL now supported inheritance Version: Select Key from 'in' CQL command Create automatically the ColumnFamily in Run Time Create automatically the Index in Run Time Support with cql 2.0 Now, it not necessary create Column Family or Secondary Index. The Easy-Cassandra will create that in run time. Version: update cassandra-thrift to Version: Fixes bug with File Support Calendar interface Version: Can now store files Support java.io.file and java.nio.file.path Version: more performance Document version: 005 6

7 Less memory Now is supported all primitives types Now is supported Byte, character, Short, BigInteger and BigDecimal Version: Fixes bug with result update for Thrift Log now using java.util.loggin Version: Fixes bug with Boolean's Object Now the Cassandra's lib is supported this way is possible use every Cassandra above of the version Version: Allowed use Column and ColumnFamilyValue in default mode this way its get the field's name Fixes bug in Reflection Beyond version For use the Easy-Cassandra is necessary: JDK 7 or above JPA 2.0 annotation lib Apache Cassandra is running Create the Keystore Do annotations in the class Annotations Realize call for save the object in Cassandra Here Add Easy-Cassandra's Lib Add Thrift Dependence: Easy Cassandra with Thrift dependencies The Thrift's dependence: cassandra-thrift jar commons-codec-1.3.jar commons-lang-2.4.jar commons-logging jar httpclient jar httpcore jar junit-4.4.jar libthrift jar servlet-api-2.5.jar slf4j-api jar Document version: 005 7

8 Maven: For use Easy-Cassandra with maven you must add in your maven application the repository and then add the tag of the project. Document version: 005 8

9 <project>. <dependencies> <dependency> <groupid>org.easycassandra</groupid> <artifactid>easycassandra</artifactid> <version>1.0.9</version> </dependency> <dependency> <groupid>org.ow2.spec.ee</groupid> <artifactid>ow2-jpa-2.0-spec</artifactid> <version>1.0.11</version> </dependency> <!-- other dependencies --> </dependencies> <repositories> <!-- other repositories --> <repository> <id>easycassandra</id> <url> </repository> </repositories> </project> Document version: 005 9

10 Annotations The annotations are for mapping of the object, then persist and retrieve the information in Cassandra. In current version are used jpa annotations Used in Class Entity: Annotations for identify the family column name. = "Person") public class Person implements Serializable public class Person implements Serializable {...} If this no used the 'name' value, the default value is the Class's name MappedSuperclass: You can use inheritance for this you need annotations in father's class and the subclass allow persist the objects of the super public class Worker implements Serializable private String private Double salary; //getter and setter public class Engineer extends Worker private String private String private String especialization; //getter and setter } Document version:

11 Used in Field Column: For identify the column in the Family Column, the classes can be used are: all primitives types (int, long, short, byte, float, double, boolean) java.lang.boolean java.util.date java.lang.double java.lang.float java.lang.integer java.lang.long java.lang.string java.lang.boolean java.lang.byte java.lang.short java.lang.character java.io.file = "year") private Integer private Integer year; If this no used the 'name' value, the default value is the Field's name Embedded: The class with this is annotation has fields with Column inside itself, but the persistence way continues in the same Family of the Column. This annotation is to do the object s modeling private MyObject myobject; Enumerated: For be used private EnumClass enumclass; Document version:

12 @Enumerated private EnumClass enumclass; If this no used the 'name' value, the default value is the Field's name Version The version annotation is used for know the time that Object was persisted in Cassandra database. It uses the timestamp in column, in other words, this annotation doesn't persist nothing in Cassandra, but retrieves the timestamp from line. This annotation might be java.lang.long, java.lang.string, java.util.date, java.util.calendar. private Date timestampdate; The field with this annotation is an index secundary, can search and retrieve information from the row like Id, need also use the Column together with = "name") private private String name; Id: The field with this annotation is a Key of the Row. If the auto value is true will generate auto increment, each new Key in the FamilyColumn there are a new value auto private private Long id; When you use the auto increment resource the kind of key field must be: java.lang.string, java.lang.long, java.lang.integer, java.lang.byte, java.lang.short, java.math.biginteger The default value for auto equals false, in other words Easy-Cassandra will not generate an auto increment value, when the auto is false can use all type supported by framework and when is auto is true must use Long object. Each Class with FamilyColumn annotation must be this annotation in some field. Document version:

13 Complete Example with = "person") public class Person implements Serializable { private static final long serialversionuid = private Long = "name") private String = "born") private Integer year; //getter and setter } //Embedded class public class Address implements Serializable { private static final long serialversionuid = private String private String private String private String cep; //getter and setter } Commands Consistency Level The org.easycassandra.consistencylevel is an enum that controls both read and write, in Easy-Cassandra, the behavior based on the ReplicationFactor of the keyspace. Enum Options: ONE: Read Will return the record returned by the first replica to respond. A consistency check is always done in a background thread to fix any consistency issues when ConsistencyLevel.ONE is used. This means subsequent calls will have correct data even if the initial read gets an older value. (This is called ReadRepair). Document version:

14 Write Ensure that the write has been written to at least 1 replica's commit log and memory table before responding to the client. QUORUM Read Will query all replicas and return the record with the most recent timestamp once it has at least a majority of replicas (N 2 + 1) reported. Again, the remaining replicas will be checked in the background. Write Ensure that the write has been written to N replicas before responding to the client. ALL Read Will query all replicas and return the record with the most recent timestamp once all replicas have replied. Any unresponsive replicas will fail the operation. Write Ensure that the write is written to all N replicas before responding to the client. Any unresponsive replicas will fail the operation. DCQUORUM Read Returns the record with the most recent timestamp once a majority of replicas within the local datacenter have replied. Write Ensure that the write has been written to <ReplicationFactor> nodes, within the local datacenter (requires NetworkTopologyStrategy). Document version:

15 DCQUORUMSYNC Read Returns the record with the most recent timestamp once a majority of replicas within each datacenter have replied. Write Ensure that the write has been written to <ReplicationFactor> nodes in each datacenter (requires NetworkTopologyStrategy). Document version:

16 The class org.easycassandra.persistence.easycassandramanager This class has objective does connections for Cassandra and manages them, also is it that all information is contained in common between the all objects of the connections, the class Persistence. Client getclient(string keyspace, String host, int port) Method for create the Cassandra's Client native. That: keyspace- name of keyspace in Cassandra host- host that Cassandra be port number of port to communication with Cassandra DataBase EasyCassandraManager.getClient("keyspace", "host", 9160); Persistence getpersistence(string keyspace, String host, int port) Method for create the Easy-Cassandra's Client. That: keyspace- name of keyspace in Cassandra host- host that Cassandra be port number of port to communication with Cassandra Data Base Persistence getpersistence(string keyspace, String host, int port) boolean addfamilyobject(class<?> classcolumnfamily) This command is for add some Class for use in JPQL in Cassandra, so you need add class before its use. EasyCassandraManager.addFamilyObject(Object1.class); EasyCassandraManager.addFamilyObject(Object2.class); Document version:

17 The class org.easycassandra.persistence.persistence The class Persistence is the main Class for do call to Cassandra, for created this class you must inform the host, port and Keystore where is Cassandra. Persistence persistence= EasyCassandraManager.getPersistence("javabahia", "localhost", 9160); In current version you can use one or more nodes with easy-cassandra. Using multi-node you have two choice: random or sequential way and both you should add nodes before use the client. For random way, access the client in randomly, use the class PersistenceRandom and for the sequential way, use the client sequentially, use the class PersistenceSequencial. Both are son of Persistence, in other word, it's possible change single node, sequential node and random node in real time. Adding nodes EasyCassandraManager.getPersistence("javabahia", "node1", 9160); EasyCassandraManager.getPersistence("javabahia", "node2", 9160); EasyCassandraManager.getPersistence("javabahia", "node3", 9160); Random Persistence persistence=easycassandramanager.getpersistencerandom("javabahia"); Sequential Persistence persistence=easycassandramanager.getpersistencesequencial("javabahia"); Single Persistence persistence= EasyCassandraManager.getPersistence("javabahia", "localhost", 9160); Document version:

18 Insert Commands This are command for persist class in Cassandra. insert(object object, ConsistencyLevelCQL consistencylevel) Insert the object with a consistency level defined, it return true if executed with success. boolean success=persistence.insert(bean,consistencylevelcql.all); insert(object object) Insert the object with a consistency level equal ConsistencyLevelCQL.ONE, it return true if executed with success. boolean success=persistence.insert(bean); Remove Commands delete(object object) Remove all row from key inside of the Object, the key value must be not empty or null. It return true if executed with success. boolean success=persistence.delete(bean); deletebyid(object Id, Class objectclass) Remove all row with key value and use the Class for search the respective Column Family. It return true if executed with success. boolean success=persistence.deletebyid(rowkey, baseclass); Update Commands Document version:

19 update(object object, ConsistencyLevel consistencylevel) Update all row with information present in the object with Consistency level sectioned, this command do an override in values in the row, the key value must be not empty or null. It return true if executed with success. boolean success=persistence.update(bean,consistencylevelcql.dcquorum); update(object object, ConsistencyLevel consistencylevel) Update all row with information present in the object consistency level equal ConsistencyLevelCQL.ONE this command do an override in values in the row, the key value must be not empty or null. It return true if executed with success. boolean success=persistence.update(bean); List Commands findall(class persistenceclass, ConsistencyLevelCQL consistencylevel, int limit) Return all objects in the Column Family, recovered by class, with consistency level selected and with a limit number defined. List<BaseObject> list =persistence.findall(baseclass, ConsistencyLevelCQL.DCQUORUMSYNC, 15000); findall(class persistenceclass, ConsistencyLevelCQL consistencylevel) Return all objects in the Column Family, recovered by class, with consistency level selected and with a limit number List<BaseObject> list =persistence.findall(baseclass, ConsistencyLevelCQL.DCQUORUMSYNC); findall(class persistenceclass, int limit) Return all objects in the Column Family, recovered by class, with consistency level equal ConsistencyLevelCQL.ONE and with a limit number defined. List<BaseObject> list =persistence.findall(baseclass, 5000); Document version:

20 findall(class persistenceclass) Return all objects in the Column Family, recovered by class, with consistency level equal ConsistencyLevelCQL.ONE and with a limit number List<BaseObject> list =persistence.findall(baseclass); findbyindex(object index, Class objectclass, ConsistencyLevelCQL consistencylevelcql, int limit) Return all objects from secondary index in the Column Family, recovered by class, with consistency level selected and with a limit number defined. The class must be some field with Index annotations. List<BaseObject> list =persistence.findbyindex(index,baseclass, ConsistencyLevelCQL.DCQUORUMSYNC, 15000); findbyindex(class persistenceclass, ConsistencyLevelCQL consistencylevel) Return all objects from secondary index in the Column Family, recovered by class, with consistency level selected and with a limit number The class must be some field with Index annotations. List<BaseObject> list =persistence.findbyindex(index,baseclass, ConsistencyLevelCQL.DCQUORUMSYNC); findbyindex(class persistenceclass, int limit) Return all objects from secondary index in the Column Family, recovered by class, with consistency level equal ConsistencyLevelCQL.ONE and with a limit number defined. The class must be some field with Index annotations. List<BaseObject> list =persistence.findall(index,baseclass, 5000); findbyindex(class persistenceclass) Return all objects from secondary index in the Column Family, recovered by class, with consistency level equal ConsistencyLevelCQL.ONE and with a limit number The class must be some field with Index annotations. List<BaseObject> list =persistence.findbyindex(index,baseclass); Document version:

21 Retrieve from Key row Commands findbykey(object key, Class persistenceclass, ConsistencyLevelCQL consistencylevel) Return the object from key row with the value passed in parameter, recovered by class, with the consistency level selectioned. BaseObject base=(baseobject)persistence.findbykey(idvalue, baseclass,consistencylevelcql.all); findbykey(object key, Class persistenceclass) Return the object from key row with the value passed in parameter, recovered by class, with the consistency level selected. BaseObject base=(baseobject)persistence.findbykey(idvalue, baseclass); findbykeyin(class baseclass,consistencylevelcql consistencylevel,object... keys) Return the object from key row with N value passed in parameter, recovered by class, with the consistency level selected. List<BaseObject> list=persistence.findbykeyin( baseclass,consistencylevelcql.all,param1,param2,param3); findbykeyin(class baseclass, Object... keys) Return the object from key row with N value passed in parameter, recovered by class, with the consistency level equal ConsistencyLevelCQL.ONE. List<BaseObject> list=persistence.findbykeyin( baseclass,param1,param2,param3); Count Commands count(class<?> clazz,consistencylevelcql consistencylevel) Return the number of rows in Column Family with the consistency level selected. Long numberofrow=persistence.count(baseclass,consistencylevelcql.dcquorumsync); Document version:

22 count(class clazz) Return the number of rows in Column Family with consistency level equal ConsistencyLevel. Long numberofrow=persistence.count(baseclass); Document version:

23 Sample Abstract DAO Bellow a simple example DAO using Easy-Cassandra. public abstract class AbstractDao<T> { private Persistence persistence; private Class baseclass; public AbstractDao(Class<T> baseclass) { this.baseclass=baseclass; persistence = EasyCassandraManager.getPersistence("javabahia", "localhost", 9160); } public boolean insert(t bean) { } return persistence.insert(bean,consistencylevelcql.one); public boolean remove(t bean) { } return persistence.delete(bean); public boolean removefromrowkey(object rowkey) { } return persistence.deletebyid(rowkey, baseclass); public boolean update(t bean) { } return public T retrieve(object id) { return (T) persistence.findbykey(id, baseclass); public List<T> listall() { } return persistence.findall(baseclass); Document version:

24 @SuppressWarnings("unchecked") public List<T> listbyindex(object index) { } return persistence.findbyindex(index, baseclass); public Long count() { return persistence.count(baseclass); } public List<T> findkeyin(object... key) { return persistence.findbykeyin( baseclass,key); } } Document version:

25 Native Commands Get Thrift Client If necessary you can call Thrift functions for it, it is necessary inform the host, port, and keystore for the Class EasyCassandraManager. Client client=easycassandramanager.getclient("javabahia", "localhost", 9160); Get Thrift Client in Current Persistence Also is allowed get Thrift's client, used by Persistence. Client client=persistence.getclient(); Execute Cassandra Query Language executeupdatecql(string query) This Command execute the query in String if there was success return true otherwise false boolean success=persistence.executeupdatecql("delete columnname FROM COLUMNFAMILY WHERE KEY = keyname1"); executecql(string query) Retrieve values from Query command and return The values from query like List of the Map<String, String>: Each List is a row. Each Map<String, String>: a key in the map is equal a column's name and the value in the map is the column's value. List<Map<String, String>> result=persistence.executecql("select * from ColumnFamily"); Document version:

26 The class org.easycassandra.persistence.jcassandra The interface JCassandra is look like javax.persistence.query in JPA, its main objective is be Java Persistence Query Language, in other words, translate Java's object to Cassandra Data Base. But before talk about that call, is very important say that there are some different features between NOSQL Column Family and SQL. The first on is there aren't relationship between Column family. So you might not do relationship. Like one to one, one to many or many to many. The second one the Cassandra is case sensitive, then Person, person and person are different names in Cassandra. Add Class for Easy-Cassandra to manager The first thing to do for use JPQL in Easy-Cassandra is add Class, for this you don't need use XML, that's it without XML. EasyCassandraManager.addFamilyObject(Class<?> classcolumnfamily) This command is for add some Class for use in JPQL in Cassandra, so you need add class before its use. EasyCassandraManager.addFamilyObject(Object1.class); EasyCassandraManager.addFamilyObject(Object2.class); Persistence.createJCassandra(String cql) Method for create the interface JCassandra that is for used to control query execution. JCassandra query=persistence.createjcassandra("select * from Object"); List getresultlist() Execute a CQL and return the result results as a List. JCassandra query=persistence.createjcassandra("select * from Object"); List<Person> persons=jcassandra.getresultlist(); Document version:

27 setfirstresult(int startposition); Set the position of the first result to retrieve. JCassandra query=persistence.createjcassandra("select * from Object"); jcassandra.setfirstresult(2); List<Person> persons=jcassandra.getresultlist(); int getfirstresult(); Get the parameter objects corresponding to the declared parameters of the query. Returns empty set if the query has no parameters. This method is not required to be supported for native queries. JCassandra query=persistence.createjcassandra("select * from Object"); jcassandra.getfirstresult(); setmaxresults(int maxresult); Set the maximum number of results to retrieve. JCassandra query=persistence.createjcassandra("select * from Object"); jcassandra.setmaxresults(2); List<Person> persons=jcassandra.getresultlist(); int getmaxresults(); The position of the first result the query object was set to retrieve. Returns 0 if setfirstresult was not applied to the query object. JCassandra query=persistence.createjcassandra("select * from Object"); jcassandra.getmaxresults(); setparameter(string name, Object value); Bind an argument to a named parameter. JCassandra jcassandra=persistence.createjcassandra("select * from Person where id =:id "); jcassandra.setparameter("id","10"); Document version:

28 Set<Parameter<?>> getparameters(); Get the parameter objects corresponding to the declared parameters of the query. Returns empty set if the query has no parameters. This method is not required to be supported for native queries. JCassandra jcassandra=persistence.createjcassandra("select * from Person where id =:id and name =:name"); Set<Parameter<?>> setparameters=jcassandra.getparameters(); Parameter<?> getparameter(int position); Get the parameter object corresponding to the declared positional parameter with the given position. This method is not required to be supported for native queries. JCassandra jcassandra=persistence.createjcassandra("select * from Person where id =:id and name =:name"); Parameter<?> parameter=jcassandra.getparameter(0); Parameter<?> getparameter(string name); Get the parameter object corresponding to the declared parameter of the given name. This method is not required to be supported for native queries. JCassandra jcassandra=persistence.createjcassandra("select * from Person where id =:id and name =:name"); Parameter<?> parameter=jcassandra.getparameter( name ); Object getsingleresult(); Execute a cql that returns a single result. JCassandra jcassandra=persistence.createjcassandra("select * from Person where id = '31' "); Person person=(person)jcassandra.getsingleresult(); boolean executeupdate(); Execute an update or delete statement. JCassandra jcassandra=persistence.createjcassandra("delete from Person where id =:id "); jcassandra.setparameter("id", 1l); jcassandra.executeupdate(); Document version:

29 JPQL in Cassandra Commands Retrieve Objects Select the Object For retrieve the object in CQL command, you should use the '*' character. You might use the where condition in select, for this the field should be index secondary and key. JCassandra jcassandra=persistence.createjcassandra("select * from Person"); List<Person> persons=jcassandra.getresultlist(); Select some fields in the Object You are able select some fields, for this separate the fields with comma. You might use the where condition in select, for this the field should be index secondary and key. JCassandra jcassandra=persistence.createjcassandra("select name, id, year from Person"); List<Map<String, Object>> list=jcassandra.getresultlist(); Count number of row in Object Count number of row in Column Family use the count(*) command. You might use the where condition in select, for this the field should be index secondary and key. JCassandra jcassandra=persistence.createjcassandra("select count(*) from Person "); Long counter=(long)jcassandra.getsingleresult(); Document version:

30 Delete Objects remove the Object For remove the object in Cassandra, you need know the key and use this in 'where' condition. JCassandra jcassandra=persistence.createjcassandra("delete from Person where id =:id "); jcassandra.setparameter("id", 1l); jcassandra.executeupdate(); remove some fields in the Object You are able remove some fields, for this separate the fields with comma, you need know the key use that in 'where' condition. JCassandra jcassandra=persistence.createjcassandra("delete name from Person where id =:id "); jcassandra.setparameter("id", 10l); jcassandra.executeupdate(); Document version:

31 Update Objects update some fields in the Object You are able update some fields, for this separate the fields with comma, you need know the key use that in 'where' condition. JCassandra jcassandra=persistence.createjcassandra("update Person set name =:name where id =:id "); jcassandra.setparameter("id", 4l); jcassandra.setparameter("name", "Otavio Santana"); jcassandra.executeupdate(); Document version:

32 How to Contribute with this project If you would like help the project, report software error, fix bug in the document you can send for: or participate in Google Groups: Article: mple Document version:

Table of Content. Introduction to ObjectDB and JPA. Object Model: Types, Entities, Primary Keys. Database Connections

Table of Content. Introduction to ObjectDB and JPA. Object Model: Types, Entities, Primary Keys. Database Connections ObjectDB Table of Content Introduction to ObjectDB and JPA Object Model: Types, Entities, Primary Keys. Database Connections JPA Fundamentals (CRUD Operations) Java Persistence Query Language (JPQL) JPA

More information

Please report this problem on the Codebeamer support site with as much detail as possible so we know how to reproduce it:

Please report this problem on the Codebeamer support site with as much detail as possible so we know how to reproduce it: 1 von 11 23.05.2014 10:11 Please report this problem on the Codebeamer support site with as much detail as possible so we know how to reproduce it: 1. 2. 3. On which page did you experience the problem?

More information

Facebook: Cassandra. Smruti R. Sarangi. Department of Computer Science Indian Institute of Technology New Delhi, India. Overview Design Evaluation

Facebook: Cassandra. Smruti R. Sarangi. Department of Computer Science Indian Institute of Technology New Delhi, India. Overview Design Evaluation Facebook: Cassandra Smruti R. Sarangi Department of Computer Science Indian Institute of Technology New Delhi, India Smruti R. Sarangi Leader Election 1/24 Outline 1 2 3 Smruti R. Sarangi Leader Election

More information

Simba Apache Cassandra ODBC Driver

Simba Apache Cassandra ODBC Driver Simba Apache Cassandra ODBC Driver with SQL Connector 2.2.0 Released 2015-11-13 These release notes provide details of enhancements, features, and known issues in Simba Apache Cassandra ODBC Driver with

More information

Java Interview Questions and Answers

Java Interview Questions and Answers 1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write and compile the java

More information

Apache Cassandra Query Language (CQL)

Apache Cassandra Query Language (CQL) REFERENCE GUIDE - P.1 ALTER KEYSPACE ALTER TABLE ALTER TYPE ALTER USER ALTER ( KEYSPACE SCHEMA ) keyspace_name WITH REPLICATION = map ( WITH DURABLE_WRITES = ( true false )) AND ( DURABLE_WRITES = ( true

More information

Service Integration course. Cassandra

Service Integration course. Cassandra Budapest University of Technology and Economics Department of Measurement and Information Systems Fault Tolerant Systems Research Group Service Integration course Cassandra Oszkár Semeráth Gábor Szárnyas

More information

Getting Started with SandStorm NoSQL Benchmark

Getting Started with SandStorm NoSQL Benchmark Getting Started with SandStorm NoSQL Benchmark SandStorm is an enterprise performance testing tool for web, mobile, cloud and big data applications. It provides a framework for benchmarking NoSQL, Hadoop,

More information

Comparing SQL and NOSQL databases

Comparing SQL and NOSQL databases COSC 6397 Big Data Analytics Data Formats (II) HBase Edgar Gabriel Spring 2015 Comparing SQL and NOSQL databases Types Development History Data Storage Model SQL One type (SQL database) with minor variations

More information

PERFORMANCE EVALUATION OF JAVA OBJECT-RELATIONAL MAPPING TOOLS HASEEB YOUSAF. (Under the Direction of John A. Miller)

PERFORMANCE EVALUATION OF JAVA OBJECT-RELATIONAL MAPPING TOOLS HASEEB YOUSAF. (Under the Direction of John A. Miller) PERFORMANCE EVALUATION OF JAVA OBJECT-RELATIONAL MAPPING TOOLS by HASEEB YOUSAF (Under the Direction of John A. Miller) ABSTRACT In the modern era of enterprise Web technology, there is strong competition

More information

Axway API Gateway. Version 7.4.1

Axway API Gateway. Version 7.4.1 K E Y P R O P E R T Y S T O R E U S E R G U I D E Axway API Gateway Version 7.4.1 26 January 2016 Copyright 2016 Axway All rights reserved. This documentation describes the following Axway software: Axway

More information

MariaDB Cassandra interoperability

MariaDB Cassandra interoperability MariaDB Cassandra interoperability Cassandra Storage Engine in MariaDB Sergei Petrunia Colin Charles Who are we Sergei Petrunia Principal developer of CassandraSE, optimizer developer, formerly from MySQL

More information

MS ACCESS DATABASE DATA TYPES

MS ACCESS DATABASE DATA TYPES MS ACCESS DATABASE DATA TYPES Data Type Use For Size Text Memo Number Text or combinations of text and numbers, such as addresses. Also numbers that do not require calculations, such as phone numbers,

More information

Pervasive Data Integrator. Oracle CRM On Demand Connector Guide

Pervasive Data Integrator. Oracle CRM On Demand Connector Guide Pervasive Data Integrator Oracle CRM On Demand Connector Guide Pervasive Software Inc. 12365 Riata Trace Parkway Building B Austin, Texas 78727 USA Telephone: (512) 231-6000 or (800) 287-4383 Fax: (512)

More information

database abstraction layer database abstraction layers in PHP Lukas Smith BackendMedia smith@backendmedia.com

database abstraction layer database abstraction layers in PHP Lukas Smith BackendMedia smith@backendmedia.com Lukas Smith database abstraction layers in PHP BackendMedia 1 Overview Introduction Motivation PDO extension PEAR::MDB2 Client API SQL syntax SQL concepts Result sets Error handling High level features

More information

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca

More information

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007 Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007 The Java Type System By now, you have seen a fair amount of Java. Time to study in more depth the foundations of the language,

More information

Moving at the speed of Markets Gyan Aggarwal Sr. Software Architect gyanendraa@tpt.com #cassandra12

Moving at the speed of Markets Gyan Aggarwal Sr. Software Architect gyanendraa@tpt.com #cassandra12 Moving at the speed of Markets Gyan Aggarwal Sr. Software Architect gyanendraa@tpt.com #cassandra12 TRIPLE POINT TECHNOLOGY WESTPORT HOUSTON PARSIPPANY LONDON VIENNA GENEVA CAPE TOWN PUNE CHENNAI SINGAPORE

More information

Media Upload and Sharing Website using HBASE

Media Upload and Sharing Website using HBASE A-PDF Merger DEMO : Purchase from www.a-pdf.com to remove the watermark Media Upload and Sharing Website using HBASE Tushar Mahajan Santosh Mukherjee Shubham Mathur Agenda Motivation for the project Introduction

More information

Job Reference Guide. SLAMD Distributed Load Generation Engine. Version 1.8.2

Job Reference Guide. SLAMD Distributed Load Generation Engine. Version 1.8.2 Job Reference Guide SLAMD Distributed Load Generation Engine Version 1.8.2 June 2004 Contents 1. Introduction...3 2. The Utility Jobs...4 3. The LDAP Search Jobs...11 4. The LDAP Authentication Jobs...22

More information

Spring Data JDBC Extensions Reference Documentation

Spring Data JDBC Extensions Reference Documentation Reference Documentation ThomasRisberg Copyright 2008-2015The original authors Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee

More information

Services. Relational. Databases & JDBC. Today. Relational. Databases SQL JDBC. Next Time. Services. Relational. Databases & JDBC. Today.

Services. Relational. Databases & JDBC. Today. Relational. Databases SQL JDBC. Next Time. Services. Relational. Databases & JDBC. Today. & & 1 & 2 Lecture #7 2008 3 Terminology Structure & & Database server software referred to as Database Management Systems (DBMS) Database schemas describe database structure Data ordered in tables, rows

More information

AP Computer Science Java Subset

AP Computer Science Java Subset APPENDIX A AP Computer Science Java Subset The AP Java subset is intended to outline the features of Java that may appear on the AP Computer Science A Exam. The AP Java subset is NOT intended as an overall

More information

Going Native With Apache Cassandra. QCon London, 2014 www.datastax.com @DataStaxEMEA

Going Native With Apache Cassandra. QCon London, 2014 www.datastax.com @DataStaxEMEA Going Native With Apache Cassandra QCon London, 2014 www.datastax.com @DataStaxEMEA About Me Johnny Miller Solutions Architect www.datastax.com @DataStaxEU jmiller@datastax.com @CyanMiller https://www.linkedin.com/in/johnnymiller

More information

JAXB Tips and Tricks Part 2 Generating Java Classes from XML Schema. By Rob Ratcliff

JAXB Tips and Tricks Part 2 Generating Java Classes from XML Schema. By Rob Ratcliff JAXB Tips and Tricks Part 2 Generating Java Classes from XML Schema By Rob Ratcliff What is JAXB? Java Architecture for XML Binding Maps an XML Schema into Java Objects Experimental support for DTD, RelaxNG

More information

Package sjdbc. R topics documented: February 20, 2015

Package sjdbc. R topics documented: February 20, 2015 Package sjdbc February 20, 2015 Version 1.5.0-71 Title JDBC Driver Interface Author TIBCO Software Inc. Maintainer Stephen Kaluzny Provides a database-independent JDBC interface. License

More information

SQL. Short introduction

SQL. Short introduction SQL Short introduction 1 Overview SQL, which stands for Structured Query Language, is used to communicate with a database. Through SQL one can create, manipulate, query and delete tables and contents.

More information

Object-Oriented Databases db4o: Part 2

Object-Oriented Databases db4o: Part 2 Object-Oriented Databases db4o: Part 2 Configuration and Tuning Distribution and Replication Callbacks and Translators 1 Summary: db4o Part 1 Managing databases with an object container Retrieving objects

More information

OpenReports: Users Guide

OpenReports: Users Guide OpenReports: Users Guide Author: Erik Swenson Company: Open Source Software Solutions Revision: Revision: 1.3 Last Modified: Date: 05/24/2004 1 Open Source Software Solutions Table Of Contents 1. Introduction...

More information

Package RCassandra. R topics documented: February 19, 2015. Version 0.1-3 Title R/Cassandra interface

Package RCassandra. R topics documented: February 19, 2015. Version 0.1-3 Title R/Cassandra interface Version 0.1-3 Title R/Cassandra interface Package RCassandra February 19, 2015 Author Simon Urbanek Maintainer Simon Urbanek This packages provides

More information

A Brief Introduction to MySQL

A Brief Introduction to MySQL A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term

More information

Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4)

Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4) Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4) The purpose of this document is to help a beginner to install all the elements necessary to use NWNX4. Throughout

More information

Field Properties Quick Reference

Field Properties Quick Reference Field Properties Quick Reference Data types The following table provides a list of the available data types in Microsoft Office Access 2007, along with usage guidelines and storage capacities for each

More information

Distributed Systems. Tutorial 12 Cassandra

Distributed Systems. Tutorial 12 Cassandra Distributed Systems Tutorial 12 Cassandra written by Alex Libov Based on FOSDEM 2010 presentation winter semester, 2013-2014 Cassandra In Greek mythology, Cassandra had the power of prophecy and the curse

More information

Big Data and Scripting Systems build on top of Hadoop

Big Data and Scripting Systems build on top of Hadoop Big Data and Scripting Systems build on top of Hadoop 1, 2, Pig/Latin high-level map reduce programming platform interactive execution of map reduce jobs Pig is the name of the system Pig Latin is the

More information

Spring Data, Jongo & Co. Java Persistenz-Frameworks für MongoDB

Spring Data, Jongo & Co. Java Persistenz-Frameworks für MongoDB Spring Data, Jongo & Co. Java Persistenz-Frameworks für MongoDB Tobias.Trelle@codecentric.de @tobiastrelle codecentric AG 1 Tobias Trelle - Senior IT Consultant @ codecentric AG (Düsseldorf) - Organisator

More information

HareDB HBase Client Web Version USER MANUAL HAREDB TEAM

HareDB HBase Client Web Version USER MANUAL HAREDB TEAM 2013 HareDB HBase Client Web Version USER MANUAL HAREDB TEAM Connect to HBase... 2 Connection... 3 Connection Manager... 3 Add a new Connection... 4 Alter Connection... 6 Delete Connection... 6 Clone Connection...

More information

Xiaowe Xiaow i e Wan Wa g Jingxin Fen Fe g n Mar 7th, 2011

Xiaowe Xiaow i e Wan Wa g Jingxin Fen Fe g n Mar 7th, 2011 Xiaowei Wang Jingxin Feng Mar 7 th, 2011 Overview Background Data Model API Architecture Users Linearly scalability Replication and Consistency Tradeoff Background Cassandra is a highly scalable, eventually

More information

Cassandra A Decentralized, Structured Storage System

Cassandra A Decentralized, Structured Storage System Cassandra A Decentralized, Structured Storage System Avinash Lakshman and Prashant Malik Facebook Published: April 2010, Volume 44, Issue 2 Communications of the ACM http://dl.acm.org/citation.cfm?id=1773922

More information

Configuration Manual Yahoo Cloud System Benchmark (YCSB) 24-Mar-14 SEECS-NUST Faria Mehak

Configuration Manual Yahoo Cloud System Benchmark (YCSB) 24-Mar-14 SEECS-NUST Faria Mehak Configuration Manual Yahoo Cloud System Benchmark (YCSB) 24-Mar-14 SEECS-NUST Faria Mehak Table of Contents 1 Introduction... 3 1.1 Purpose... 3 1.2 Product Information... 3 2 Installation Manual... 3

More information

CASSANDRA. Arash Akhlaghi, Badrinath Jayakumar, Wa el Belkasim. Instructor: Dr. Rajshekhar Sunderraman. CSC 8711 Project Report

CASSANDRA. Arash Akhlaghi, Badrinath Jayakumar, Wa el Belkasim. Instructor: Dr. Rajshekhar Sunderraman. CSC 8711 Project Report CASSANDRA Arash Akhlaghi, Badrinath Jayakumar, Wa el Belkasim Instructor: Dr. Rajshekhar Sunderraman CSC 8711 Project Report 1 Introduction The relational model was brought by E.F. Codd s 1970 paper which

More information

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner 1 vk» Java 7 Recipes (,\['«** - < g!p#«josh Juneau Carl Dea Freddy Guime John O'Conner Contents J Contents at a Glance About the Authors About the Technical Reviewers Acknowledgments Introduction iv xvi

More information

Volta Log Library user manual

Volta Log Library user manual Volta Log Library user manual www.satellitevolta.com 1 ... 3... 3... 3... 3... 3 www.satellitevolta.com 2 [Ref.01] Volta Log distribution package (volta-log-x.y.z.* http://sourceforge.net/projects/voltalog/files/?source=navbar)

More information

Java and RDBMS. Married with issues. Database constraints

Java and RDBMS. Married with issues. Database constraints Java and RDBMS Married with issues Database constraints Speaker Jeroen van Schagen Situation Java Application store retrieve JDBC Relational Database JDBC Java Database Connectivity Data Access API ( java.sql,

More information

ANDROID APPS DEVELOPMENT FOR MOBILE GAME

ANDROID APPS DEVELOPMENT FOR MOBILE GAME ANDROID APPS DEVELOPMENT FOR MOBILE GAME Lecture 7: Data Storage and Web Services Overview Android provides several options for you to save persistent application data. Storage Option Shared Preferences

More information

Using SQL Server Management Studio

Using SQL Server Management Studio Using SQL Server Management Studio Microsoft SQL Server Management Studio 2005 is a graphical tool for database designer or programmer. With SQL Server Management Studio 2005 you can: Create databases

More information

CQL for Cassandra 2.2 & later

CQL for Cassandra 2.2 & later CQL for Cassandra 2.2 & later Documentation January 21, 2016 Apache, Apache Cassandra, Apache Hadoop, Hadoop and the eye logo are trademarks of the Apache Software Foundation 2016 DataStax, Inc. All rights

More information

MS Access: Advanced Tables and Queries. Lesson Notes Author: Pamela Schmidt

MS Access: Advanced Tables and Queries. Lesson Notes Author: Pamela Schmidt Lesson Notes Author: Pamela Schmidt Tables Text Fields (Default) Text or combinations of text and numbers, as well as numbers that don't require calculations, such as phone numbers. or the length set by

More information

Web Service Caching Using Command Cache

Web Service Caching Using Command Cache Web Service Caching Using Command Cache Introduction Caching can be done at Server Side or Client Side. This article focuses on server side caching of web services using command cache. This article will

More information

A table is a collection of related data entries and it consists of columns and rows.

A table is a collection of related data entries and it consists of columns and rows. CST 250 MySQL Notes (Source: www.w3schools.com) MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database objects called tables.

More information

Course Number: IAC-SOFT-WDAD Web Design and Application Development

Course Number: IAC-SOFT-WDAD Web Design and Application Development Course Number: IAC-SOFT-WDAD Web Design and Application Development Session 1 (10 Hours) Client Side Scripting Session 2 (10 Hours) Server Side Scripting - I Session 3 (10 hours) Database Session 4 (10

More information

Extending XSLT with Java and C#

Extending XSLT with Java and C# Extending XSLT with Java and C# The world is not perfect. If it were, all data you have to process would be in XML and the only transformation language you would have to learn would XSLT. Because the world

More information

Practical Cassandra. Vitalii Tymchyshyn tivv00@gmail.com @tivv00

Practical Cassandra. Vitalii Tymchyshyn tivv00@gmail.com @tivv00 Practical Cassandra NoSQL key-value vs RDBMS why and when Cassandra architecture Cassandra data model Life without joins or HDD space is cheap today Hardware requirements & deployment hints Vitalii Tymchyshyn

More information

Docker Java Application with Solr, Mongo, & Cassandra: Design, Deployment, Service Discovery, and Management in Production

Docker Java Application with Solr, Mongo, & Cassandra: Design, Deployment, Service Discovery, and Management in Production Docker Java Application with Solr, Mongo, & Cassandra: Design, Deployment, Service Discovery, and Management in Production You can clone this sample Names Directory Java application from GitHub. git clone

More information

Database Migration from MySQL to RDM Server

Database Migration from MySQL to RDM Server MIGRATION GUIDE Database Migration from MySQL to RDM Server A Birdstep Technology, Inc. Raima Embedded Database Division Migration Guide Published: May, 2009 Author: Daigoro F. Toyama Senior Software Engineer

More information

Hibernate Language Binding Guide For The Connection Cloud Using Java Persistence API (JAP)

Hibernate Language Binding Guide For The Connection Cloud Using Java Persistence API (JAP) Hibernate Language Binding Guide For The Connection Cloud Using Java Persistence API (JAP) Table Of Contents Overview... 3 Intended Audience... 3 Prerequisites... 3 Term Definitions... 3 Introduction...

More information

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling

More information

Facebook Twitter YouTube Google Plus Website Email

Facebook Twitter YouTube Google Plus Website Email PHP MySQL COURSE WITH OOP COURSE COVERS: PHP MySQL OBJECT ORIENTED PROGRAMMING WITH PHP SYLLABUS PHP 1. Writing PHP scripts- Writing PHP scripts, learn about PHP code structure, how to write and execute

More information

Physical Design. Meeting the needs of the users is the gold standard against which we measure our success in creating a database.

Physical Design. Meeting the needs of the users is the gold standard against which we measure our success in creating a database. Physical Design Physical Database Design (Defined): Process of producing a description of the implementation of the database on secondary storage; it describes the base relations, file organizations, and

More information

sqlite driver manual

sqlite driver manual sqlite driver manual A libdbi driver using the SQLite embedded database engine Markus Hoenicka mhoenicka@users.sourceforge.net sqlite driver manual: A libdbi driver using the SQLite embedded database engine

More information

JDK 1.5 Updates for Introduction to Java Programming with SUN ONE Studio 4

JDK 1.5 Updates for Introduction to Java Programming with SUN ONE Studio 4 JDK 1.5 Updates for Introduction to Java Programming with SUN ONE Studio 4 NOTE: SUN ONE Studio is almost identical with NetBeans. NetBeans is open source and can be downloaded from www.netbeans.org. I

More information

Java Driver 2.0 for Apache Cassandra

Java Driver 2.0 for Apache Cassandra Java Driver 2.0 for Apache Cassandra Documentation October 27, 2015 2015 DataStax, Inc. All rights reserved. Contents Contents About the Java driver...3 Architecture... 4 The driver and its dependencies...

More information

Dozer v.5.5.1 User's Guide

Dozer v.5.5.1 User's Guide ... Dozer v.5.5.1 User's Guide... Franz Garsombke, Matt Tierney, Dmitry Buzdin 2014-04-22 T a b l e o f C o n t e n t s i Table of Contents... 1. Table of Contents...........................................................

More information

Using Object Database db4o as Storage Provider in Voldemort

Using Object Database db4o as Storage Provider in Voldemort Using Object Database db4o as Storage Provider in Voldemort by German Viscuso db4objects (a division of Versant Corporation) September 2010 Abstract: In this article I will show you how

More information

Fachgebiet für Offene Kommunikationssysteme (OKS) VHE Web Services. Project in WS 2002/03. Björn Schünemann (schueni@cs.tu-berlin.

Fachgebiet für Offene Kommunikationssysteme (OKS) VHE Web Services. Project in WS 2002/03. Björn Schünemann (schueni@cs.tu-berlin. Fachgebiet für Offene Kommunikationssysteme (OKS) VHE Web Services Project in WS 2002/03 Björn Schünemann (schueni@cs.tu-berlin.de) Table of Contents 1. Introduction.3 2. Context Manager..4 2.1 Creating

More information

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013 Masters programmes in Computer Science and Information Systems Object-Oriented Design and Programming Sample module entry test xxth December 2013 This sample paper has more questions than the real paper

More information

MarkLogic Server. Java Application Developer s Guide. MarkLogic 8 February, 2015. Copyright 2015 MarkLogic Corporation. All rights reserved.

MarkLogic Server. Java Application Developer s Guide. MarkLogic 8 February, 2015. Copyright 2015 MarkLogic Corporation. All rights reserved. Java Application Developer s Guide 1 MarkLogic 8 February, 2015 Last Revised: 8.0-3, June, 2015 Copyright 2015 MarkLogic Corporation. All rights reserved. Table of Contents Table of Contents Java Application

More information

Serialization in Java (Binary and XML)

Serialization in Java (Binary and XML) IOWA STATE UNIVERSITY Serialization in Java (Binary and XML) Kyle Woolcock ComS 430 4/4/2014 2 Table of Contents Introduction... 3 Why Serialize?... 3 How to Serialize... 3 Serializable Interface... 3

More information

How To Extend Content Broker Storage On Libs Libs 3.5.2.5 (Libs) With Libs 4.5) And Libs 5.5

How To Extend Content Broker Storage On Libs Libs 3.5.2.5 (Libs) With Libs 4.5) And Libs 5.5 Whitepaper HowTo: Extending Content Broker Storage An example of storing comments using the new extensible storage model Table of contents 1 Introduction 1.1 Why a new data storage model?... 1 2 New storage

More information

Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A

Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A Developed By Brian Weinfeld Course Description: AP Computer

More information

Release Notes. DocuSign Spring 15 Release Notes. Contents

Release Notes. DocuSign Spring 15 Release Notes. Contents Release Notes Updated March 6, 2015 DocuSign Spring 15 Release Notes This document provides information about the updates deployed to the DocuSign Production environment as part of the March 6, 2015 DocuSign

More information

How to Install and Configure EBF15328 for MapR 4.0.1 or 4.0.2 with MapReduce v1

How to Install and Configure EBF15328 for MapR 4.0.1 or 4.0.2 with MapReduce v1 How to Install and Configure EBF15328 for MapR 4.0.1 or 4.0.2 with MapReduce v1 1993-2015 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic,

More information

Data Tool Platform SQL Development Tools

Data Tool Platform SQL Development Tools Data Tool Platform SQL Development Tools ekapner Contents Setting SQL Development Preferences...5 Execution Plan View Options Preferences...5 General Preferences...5 Label Decorations Preferences...6

More information

Iotivity Programmer s Guide Soft Sensor Manager for Android

Iotivity Programmer s Guide Soft Sensor Manager for Android Iotivity Programmer s Guide Soft Sensor Manager for Android 1 CONTENTS 2 Introduction... 3 3 Terminology... 3 3.1 Physical Sensor Application... 3 3.2 Soft Sensor (= Logical Sensor, Virtual Sensor)...

More information

Integrating VoltDB with Hadoop

Integrating VoltDB with Hadoop The NewSQL database you ll never outgrow Integrating with Hadoop Hadoop is an open source framework for managing and manipulating massive volumes of data. is an database for handling high velocity data.

More information

Explain the relationship between a class and an object. Which is general and which is specific?

Explain the relationship between a class and an object. Which is general and which is specific? A.1.1 What is the Java Virtual Machine? Is it hardware or software? How does its role differ from that of the Java compiler? The Java Virtual Machine (JVM) is software that simulates the execution of a

More information

CS 111 Classes I 1. Software Organization View to this point:

CS 111 Classes I 1. Software Organization View to this point: CS 111 Classes I 1 Software Organization View to this point: Data Objects and primitive types Primitive types operators (+, /,,*, %). int, float, double, char, boolean Memory location holds the data Objects

More information

Java EE Web Development Course Program

Java EE Web Development Course Program Java EE Web Development Course Program Part I Introduction to Programming 1. Introduction to programming. Compilers, interpreters, virtual machines. Primitive types, variables, basic operators, expressions,

More information

The release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala 2.5.30, as well as the version history.

The release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala 2.5.30, as well as the version history. Cloudera ODBC Driver for Impala 2.5.30 The release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala 2.5.30, as well as the version history. The following are highlights

More information

Aspect Oriented Programming. with. Spring

Aspect Oriented Programming. with. Spring Aspect Oriented Programming with Spring Problem area How to modularize concerns that span multiple classes and layers? Examples of cross-cutting concerns: Transaction management Logging Profiling Security

More information

HDB++: HIGH AVAILABILITY WITH. l TANGO Meeting l 20 May 2015 l Reynald Bourtembourg

HDB++: HIGH AVAILABILITY WITH. l TANGO Meeting l 20 May 2015 l Reynald Bourtembourg HDB++: HIGH AVAILABILITY WITH Page 1 OVERVIEW What is Cassandra (C*)? Who is using C*? CQL C* architecture Request Coordination Consistency Monitoring tool HDB++ Page 2 OVERVIEW What is Cassandra (C*)?

More information

Use Your MySQL Knowledge to Become an Instant Cassandra Guru

Use Your MySQL Knowledge to Become an Instant Cassandra Guru Use Your MySQL Knowledge to Become an Instant Cassandra Guru Percona Live Santa Clara 2014 Robert Hodges CEO Continuent Tim Callaghan VP/Engineering Tokutek Who are we? Robert Hodges CEO at Continuent

More information

Jet Data Manager 2012 User Guide

Jet Data Manager 2012 User Guide Jet Data Manager 2012 User Guide Welcome This documentation provides descriptions of the concepts and features of the Jet Data Manager and how to use with them. With the Jet Data Manager you can transform

More information

JDBC (Java / SQL Programming) CS 377: Database Systems

JDBC (Java / SQL Programming) CS 377: Database Systems JDBC (Java / SQL Programming) CS 377: Database Systems JDBC Acronym for Java Database Connection Provides capability to access a database server through a set of library functions Set of library functions

More information

INFORMATION BROCHURE Certificate Course in Web Design Using PHP/MySQL

INFORMATION BROCHURE Certificate Course in Web Design Using PHP/MySQL INFORMATION BROCHURE OF Certificate Course in Web Design Using PHP/MySQL National Institute of Electronics & Information Technology (An Autonomous Scientific Society of Department of Information Technology,

More information

Chapter 9 Java and SQL. Wang Yang wyang@njnet.edu.cn

Chapter 9 Java and SQL. Wang Yang wyang@njnet.edu.cn Chapter 9 Java and SQL Wang Yang wyang@njnet.edu.cn Outline Concern Data - File & IO vs. Database &SQL Database & SQL How Connect Java to SQL - Java Model for Database Java Database Connectivity (JDBC)

More information

Talend for Data Integration guide

Talend for Data Integration guide Talend for Data Integration guide Table of Contents Introduction...2 About the author...2 Download, install and run...2 The first project...3 Set up a new project...3 Create a new Job...4 Execute the job...7

More information

Introduction to Java

Introduction to Java Introduction to Java The HelloWorld program Primitive data types Assignment and arithmetic operations User input Conditional statements Looping Arrays CSA0011 Matthew Xuereb 2008 1 Java Overview A high

More information

To Java SE 8, and Beyond (Plan B)

To Java SE 8, and Beyond (Plan B) 11-12-13 To Java SE 8, and Beyond (Plan B) Francisco Morero Peyrona EMEA Java Community Leader 8 9...2012 2020? Priorities for the Java Platforms Grow Developer Base Grow Adoption

More information

Java Programming Fundamentals

Java Programming Fundamentals Lecture 1 Part I Java Programming Fundamentals Topics in Quantitative Finance: Numerical Solutions of Partial Differential Equations Instructor: Iraj Kani Introduction to Java We start by making a few

More information

NoSQL Databases. Nikos Parlavantzas

NoSQL Databases. Nikos Parlavantzas !!!! NoSQL Databases Nikos Parlavantzas Lecture overview 2 Objective! Present the main concepts necessary for understanding NoSQL databases! Provide an overview of current NoSQL technologies Outline 3!

More information

Portal Factory 1.0 - CMIS Connector Module documentation

Portal Factory 1.0 - CMIS Connector Module documentation DOCUMENTATION Portal Factory 1.0 - CMIS Connector Module documentation Rooted in Open Source CMS, Jahia s Digital Industrialization paradigm is about streamlining Enterprise digital projects across channels

More information

CS 377 Database Systems SQL Programming. Li Xiong Department of Mathematics and Computer Science Emory University

CS 377 Database Systems SQL Programming. Li Xiong Department of Mathematics and Computer Science Emory University CS 377 Database Systems SQL Programming Li Xiong Department of Mathematics and Computer Science Emory University 1 A SQL Query Joke A SQL query walks into a bar and sees two tables. He walks up to them

More information

Python Driver 1.0 for Apache Cassandra

Python Driver 1.0 for Apache Cassandra Python Driver 1.0 for Apache Cassandra Document August 13, 2015 2015 DataStax. All rights reserved. Contents Contents About the Python driver... 3 Installation...3 The driver and its dependencies... 4

More information

Performance Monitoring API for Java Enterprise Applications

Performance Monitoring API for Java Enterprise Applications Performance Monitoring API for Java Enterprise Applications Purpose Perfmon4j has been successfully deployed in hundreds of production java systems over the last 5 years. It has proven to be a highly successful

More information

Sample HP OO Web Application

Sample HP OO Web Application HP OO 10 OnBoarding Kit Community Assitstance Team Sample HP OO Web Application HP OO 10.x Central s rich API enables easy integration of the different parts of HP OO Central into custom web applications.

More information

Chair of Software Engineering. Java and C# in depth. Carlo A. Furia, Bertrand Meyer. C#: Persistence

Chair of Software Engineering. Java and C# in depth. Carlo A. Furia, Bertrand Meyer. C#: Persistence Chair of Software Engineering Carlo A. Furia, Bertrand Meyer C#: Persistence Outline C# Serialization Connecting to a RDBMS with ADO.NET LINQ (Language Integrated Queries) NoSQL Solutions for C# and Java

More information

Glassfish, JAVA EE, Servlets, JSP, EJB

Glassfish, JAVA EE, Servlets, JSP, EJB Glassfish, JAVA EE, Servlets, JSP, EJB Java platform A Java platform comprises the JVM together with supporting class libraries. Java 2 Standard Edition (J2SE) (1999) provides core libraries for data structures,

More information

Programming Database lectures for mathema

Programming Database lectures for mathema Programming Database lectures for mathematics students April 25, 2015 Functions Functions are defined in Postgres with CREATE FUNCTION name(parameter type,...) RETURNS result-type AS $$ function-body $$

More information