OClass - addClusterId()

This method adds a cluster to the database class.

Adding Clusters

When OrientDB saves records, it stores then clusters, using either physical or in-memory storage. With this method you can add a cluster to the class, defining the cluster by the Cluster ID.


OClass OClass().addClusterId(int name)
nameIntegerDefines the Cluster ID

Return Type

This method returns the updated OClass instance.