This method creates a new cluster for the database.
When you create a class, OrientDB automatically generates a cluster in which to store the data for that class. While this may be sufficient for many purposes, there is some benefit in creating additional clusters to better organize the data for the class. For instance, in a class used to manage accounts, you might separate clusters by region. Using this method you can create new cluster on the database.
int ODatabaseDocument().addCluster(String clusterName, Object... parameters);
||Defines the logical name of the cluster|
||Defines cluster creation options|
This method returns a
int instance, which represents the created cluster's Cluster ID. That is, the numeric identifier that occurs in the first value of a Record ID.