In this Article, I will show How to start quick development with MongoDB. How to start/stop MongoDB server. How to start MongoDB Shell. How create and use own collection. What is MongoDB? 1) MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling. 2) MongoDB documents are similar to JSON objects. Simple Steps to be ...
Read More »Java 8 Default Methods
In this Article, I will show How to work with Java 8 Default method implementation for Interface. This is one of the useful java 8 feature. What is Default methods in Java 8? Default methods enable us to add new functionalities to interfaces without breaking the classes that implements that interface. Prior to Java 8, Adding a new method to ...
Read More »Cassandra List Datatype Java Example
In this Article, I will show How to work with Cassandra list datatype. How to retrieve, insert, delete and update data. Tools Uses : 1) spring-data-cassandra-1.2.1.RELEASE 2) Apache-cassandra-2.1.6 3) eclipse version Luna 4.4.1. 4) Maven 3.3.3 5) JDK 1.6 When do we use map data type? 1) When order of the elements matters, the order may not be the natural ...
Read More »Cassandra Map Datatype Java Example
In this Article, I will show How to work with Cassandra map datatype. How to retrieve, insert, delete and update data. Tools Uses : 1) spring-data-cassandra-1.2.1.RELEASE 2) Apache-cassandra-2.1.6 3) eclipse version Luna 4.4.1. 4) Maven 3.3.3 5) JDK 1.6 When do we use map data type? A map is a name and a pair of typed values. Each element of ...
Read More »Cassandra Set Data type Java Example
In this Article, I will show How to work with Cassandra Set datatype. How to retrieve, insert, delete and update data. Tools Uses : 1) spring-data-cassandra-1.2.1.RELEASE 2) Apache-cassandra-2.1.6 3) eclipse version Luna 4.4.1. 4) Maven 3.3.3 5) JDK 1.6 Setup required data : Start Cassandra server and CQL prompt. Create a table with name UserOrders. Syntax is, CREATE TABLE UserOrders ...
Read More »Cassandra Paging Java Example
In this Article, I will show How to implement paging in Cassandra. This is common requirement in many of projects. Tools Uses : 1) Apache-cassandra-2.1.6 2) eclipse version Luna 4.4.1. 3) Maven 4.0.0 4) JDK 1.7 If you are completely new to Cassandra, Pl. refer Cassandra Quick Start. Once your Cassandra Database server is up and CQL window is open. ...
Read More »Cassandra UDTs Java Example
In this Article, I will show How to create an UDTs (User Data types) in Cassandra. How to map these UDTs to Java beans. How to do some basic operations like insert, update, delete using Java. Tools Uses : 1) Apache-cassandra-2.1.6 2) eclipse version Luna 4.4.1. 3) Maven 4.0.0 4) JDK 1.7 UDTs (User Data types) are common in many ...
Read More »How to find Hidden file list in directory JAVA 8
In this article, I will show how to get hidden files list of a given directory using JAVA 8. Tools Used : 1) eclipse version Luna 4.4.1. 2) Maven 3.3.3 3) JDK 1.8 Simple steps to follow are : 1) Create a simple maven project. 2) Write a simple java program to get hidden file list of given directory. 3) ...
Read More »How to Calculate word frequency using JAVA 8
In this article, I will show how Calculate word frequency of a given list of strings using JAVA 8. This is helpful while analyzing big data, we can get some phrases that most users are using for searching. Tools Used : 1) eclipse version Luna 4.4.1. 2) Maven 3.3.3 3) JDK 1.8 Simple steps to follow are : 1) Create ...
Read More »JQuery to check whether Image is loaded or not
In this article, I will show how to check a particular image is loaded to web page or not with JQuery load event. If you are complete new to JQuery, Then refer the JQuery Quick Start This gives you basic understanding of JQuery. By using JQuery load and error events, we can check image is loaded successfully or not. If ...
Read More »