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
Method | Return Type | Description |
---|---|---|
close() |
void |
Closes the cluster |
delete() |
void |
Removes the cluster |
deleteRecord() |
boolean |
Removes record from cluster |
exists() |
boolean |
Indicates whether the cluster exists |
getFileName() |
String |
Retrieves filename for the cluster |
getFirstPosition() |
long |
Retrieves the position of the first record in the cluster |
getId() |
int |
Retrieves the Cluster ID |
getLastPosition() |
long |
Retrieves the position of the last record in the cluster |
getName() |
String |
Retrieves the logical name of the cluster |
getNextPosition() |
long |
Retrieves the position of the next record in the cluster |
getRecordSize() |
long |
Retrieves the size of the records in bytes contained in this cluster |
getTombstonesCount() |
long |
Retrieves the number of hidden records in the cluster |
hideRecord() |
boolean |
Hides the given record from queries |
open() |
void |
Opens the cluster |
truncate() |
void |
Truncates the cluster |
updateRecord() |
void |
Updates the givne record |