CAP theorem states, you have option to pick only 2 at any point of time out of three: C, A or P.
– C stand for Consistency,
– A stand for Availability and
– P stand for Partition Tolerance.
Continue reading Understanding of CAP Theorem
Every java developer must have encountered
java.util.ConcurrentModificationException in his/her life specially in early development days . You must have several questions in you mind: what is code>ConcurrentModificationException in Java? How to avoid
ConcurrentModificationException? how to overcome
ConcurrentModificationException exception either in multi-threaded or single-threaded environment.
Continue reading What is ConcurrentModificationException in Java?
When you get chance to delete either documents or type or index , do it very carefully. How to delete index in elastic search is a straight forward but do this very carefully, specially in production environment. In this post I tried to demonstrate how to delete index and its indexed content in elastic search.
Continue reading How to Delete Index in Elastic Search?
When you get chance to delete either documents or type or index , do it very carefully. How to delete index in elastic search is a straight forward but do this very carefully specially in production environment. In this post I tried to demonstrate how to delete index and its indexed content in elastic search.
Continue reading How to Delete Document in Elastic Search?
This post is demonstrating about how to do the CRUD (create index, get content from index, Update index, and delete indexed data) operations using Rest client. You can do this via fiddler or Google’s Advance Rest Client plugin embedded in side the Crome browser.
Continue reading CRUD Operations on Elastic Search Using Rest client
If you are going to install elastic search you can have various question in your mind , like how to install elastic on windows platform? The step by step process of installation of Elastic will be learned via this post. Although, the installation of Elastic is very simple on any environment either on Windows or different flavor of Linux. Please follow following step of installation and you are done with installation part of it.
Continue reading Step by Step installation of Elastic Search on Windows
How to write a date range query on _id (objectId) in mongodb? This is very easy as MongoDB by default keep one primary key which is _id , if you not provide while inserting/adding. In _id key mongoDB keep date time or you can say timestamp of the system when inserted in to mongoDB. You can query on ObjectId or _id of mongoDB either greater than ($gt) or less than date ($lt). Here you can provide any one of them or both, it’s your choice based on the requirement. I would recommend not to keep separate field which keeps for dateTime / timestamp. _id is sufficient to pull based on date range.
Continue reading Date Range Query on ObjectId in MongoDB
This post demonstrate , how to write you own custom exception in java here I have made
UserNotFoundException. By naming convention, this Exception throws when user not found for provided userId. Here there are three class first,
UserNotFoundException.java (custom exception) , second DAO (
UserDAOImpl.java) and third class Client application which run and gives the output of program. for simlicity throws explicitly.
Continue reading How to Write Your Custom Exception in Java
This post is demonstrating , how to insert/create, select, update and delete data in Cassandra using cqlsh? How to perform CRUD (Create, Read, Update and Delete ) Operation in Cassandra using
cqlsh is straight forward and siple.
Continue reading Insert Select Update Delete data in Cassandra using cqlsh
Well, in Apache Cassandra, Keyspace is similar to schema in RDBMS and Coulum-family of Apache Cassandra is similar to table in RDBMS, but nowadays , we most of the time say Table in Cassandra. Apache Cassandra is very much flexible with different types of data, whether it is either semi-structured data or unstructured data. if you are new in Cassandra , you can visit our post: What is Apache Cassandra?
Continue reading Table in Apache Cassandra