Monthly Archives: August 2010

Fetching single Column from Cassandra database


package com.examples; import java.io.UnsupportedEncodingException; import java.util.Date; import java.util.Iterator; import java.util.List; import org.apache.cassandra.thrift.Cassandra; import org.apache.cassandra.thrift.Column; import org.apache.cassandra.thrift.ColumnOrSuperColumn; import org.apache.cassandra.thrift.ColumnParent; import org.apache.cassandra.thrift.ConsistencyLevel; import org.apache.cassandra.thrift.InvalidRequestException; import org.apache.cassandra.thrift.KeyRange; import org.apache.cassandra.thrift.KeySlice; import org.apache.cassandra.thrift.NotFoundException; import org.apache.cassandra.thrift.SlicePredicate; import org.apache.cassandra.thrift.SliceRange; import org.apache.cassandra.thrift.TimedOutException; import org.apache.cassandra.thrift.UnavailableException; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol;

Tagged with: , ,
Posted in Cassandra, Databases

Fetching all columns example in Cassandra


package com.examples; import java.io.UnsupportedEncodingException; import java.util.Date; import java.util.Iterator; import java.util.List; import org.apache.cassandra.thrift.Cassandra; import org.apache.cassandra.thrift.Column; import org.apache.cassandra.thrift.ColumnOrSuperColumn; import org.apache.cassandra.thrift.ColumnParent; import org.apache.cassandra.thrift.ConsistencyLevel; import org.apache.cassandra.thrift.InvalidRequestException; import org.apache.cassandra.thrift.KeyRange; import org.apache.cassandra.thrift.KeySlice; import org.apache.cassandra.thrift.NotFoundException; import org.apache.cassandra.thrift.SlicePredicate; import org.apache.cassandra.thrift.SliceRange; import org.apache.cassandra.thrift.TimedOutException; import org.apache.cassandra.thrift.UnavailableException; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol;

Tagged with: , ,
Posted in Cassandra, Databases

Cassandra Inseart Example


package com.example; import java.io.UnsupportedEncodingException; import java.util.Date; import org.apache.cassandra.thrift.Cassandra; import org.apache.cassandra.thrift.Column; import org.apache.cassandra.thrift.ColumnPath; import org.apache.cassandra.thrift.ConsistencyLevel; import org.apache.cassandra.thrift.InvalidRequestException; import org.apache.cassandra.thrift.NotFoundException; import org.apache.cassandra.thrift.TimedOutException; import org.apache.cassandra.thrift.UnavailableException; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.protocol.TProtocol; import org.apache.thrift.transport.TSocket; import org.apache.thrift.transport.TTransport; import org.apache.thrift.transport.TTransportException; public class CassandraInsertExample { public static

Tagged with: , ,
Posted in Cassandra, Databases

ENABLING JMX PORT IN WEBLOGIC


Weblogic runs with domains. With different domains you can enable the JMX port by fallowing the below steps. Step 1: Go to your domain bin folder, which you want to enable JMX remote port. Ex: C:\bea\wlserver_10.3\samples\domains\wl_server\bin Step 2: edit the

Tagged with: ,
Posted in JAVA, JMX

Introduction to Apache Cassandra.


What is Cassandra? Apache Cassandra is a non relational database which is given by the Apache. Initially, Cassandra was open sourced by Facebook in 2008, and is now developed by Apache Group. In the normal relational databases data stores in

Tagged with: , ,
Posted in Cassandra

Apache Cassandra


Some of useful links http://cassandra.apache.org/http://schabby.de/cassandra-installation-configuration/http://wiki.apache.org/cassandra/ThriftExampleshttp://prettyprint.me/2010/02/23/hector-a-java-cassandra-client/http://www.rackspacecloud.com/blog/2010/05/12/cassandra-by-example/http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/http://wiki.apache.org/cassandra/APIhttp://anismiles.wordpress.com/2010/05/24/connecting-to-cassandra-1/

Tagged with: , , , ,
Posted in Cassandra

Tips to fallow while doing JAVA code


Counting down (i.e. for (int i=n; i>0; i–)) is twice as fast as counting up: my machine can count down to 144 million in a second, but up to only 72 million. Calling Math.max(a,b) is 7 times slower than (a

Posted in JAVA

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 676 other followers

Calendar
August 2010
M T W T F S S
« Jul   Sep »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 228,786 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100
All tags
AngularJS Apache Cassandra Arrays in Java Cassandra Cassandra Database Cassandra examples client stubs creating a java web service creating a web service using java difference between interface and abstract class Differences between SOAP and RESTfull webservices Display div as Overlay using JQuery download the spring basic application File directory Generating webservice client stubs Hibernate hibernate exceptions How to display over using JQuery how to generated web service client stubs in STS How to implement Spring basic application how to write singleton design pattern in java interface in java Java Java Arrays Java Example Programs Java examples Java interview questions java programs java project Java sample Programs Java Script JavaScript JavaServer Faces Java Sorting alogorithms Java Tutorials javatutorials Java Web services JDBC open shift openshift Overlay implementation using JQuery Overlay in JQuery POI API POI Examples public class public static void main Redhat OpenShift representational state transfer Restfull webservices sample programs in java Service-oriented architecture Singleton design pattern in java SOAP SOAP Webservices software Spring Framework Spring Interview Questions Spring MVC Spring MVC Example program Spring MVC sample Program Spring Sample Programs Spring Tutorials Struts technology Top Java Interview questions w3c dom Web service web service client Web Service Description Language webservices Web services writing singleton design pattern in Java WSDL Xml xml parsers