OCluster

This class provides an interface for interacting with clusters.

Managing Database Clusters

Clusters in OrientDB are where the server actually stores data, whether on the physical disk or in memory. They are comparable to the partition in Relational databases. Using the OCluster interface, you can operate directly on clusters from your application.

import com.orientechnologies.orient.core.storage.OCluster;

Methods

MethodReturn TypeDescription
close()voidCloses the cluster
delete()voidRemoves the cluster
deleteRecord()booleanRemoves record from cluster
exists()booleanIndicates whether the cluster exists
getFileName()StringRetrieves filename for the cluster
getFirstPosition()longRetrieves the position of the first record in the cluster
getId()intRetrieves the Cluster ID
getLastPosition()longRetrieves the position of the last record in the cluster
getName()StringRetrieves the logical name of the cluster
getNextPosition()longRetrieves the position of the next record in the cluster
getRecordSize()longRetrieves the size of the records in bytes contained in this cluster
getTombstonesCount()longRetrieves the number of hidden records in the cluster
hideRecord()booleanHides the given record from queries
open()voidOpens the cluster
truncate()voidTruncates the cluster
updateRecord()voidUpdates the given record