Couchdb 6
Couchdb : Adding Document Using Java Couchdb4j
Couchdb4j is a library for Couch Database for manipulating document in database. The jar file :- http://code.google.com/p/couchdb4j/downloads/list In this Demo ,“A new Student document is created with properties nad added to the student database”. Project structure:- The Java code CouchDBTest.java is , package com.sandeep.couchdb.util;import java.util.HashMap;import java.util.Map;import com.fourspaces.couchdb.Database;import com.fourspaces.couchdb.Document;import com.fourspaces.couchdb.Session;public class […]
Working With Futon : Replicating a Database
Couch database provides the feature of replication to copy a database.It is a nice feature to backup the document. It supports continuous replication also. Here in Every 5 seconds the replicator service get called for sync. In this Demo,”We are using Futon to create two database replica of student. “student_replica” is a backup replica of […]
Working With Futon : Creating Reduce Function
In Couch database a view is a combination of map and reduce function. In my previous post(link) we have seen how to create a custom map function.In this post we will see about reduce function. reduce function is used on each unique key of the result set of map function .It summarizes the result of […]
Working With Futon : Creating Custom Map Function
“FUTON” is a web interface for couch db. It can be viewed in “5984” port of the system. In the my previous post(link) we have seen how to install and create a database in couch db. In another previous post(link) we have seen how to access the content of a database (“student”) in java using […]