public interface OCluster
| Modifier and Type | Interface and Description |
|---|---|
static class |
OCluster.ATTRIBUTES |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireAtomicExclusiveLock()
Acquires exclusive lock in the active atomic operation running on the current thread for this
cluster.
|
OPhysicalPosition |
allocatePosition(byte recordType,
OAtomicOperation atomicOperation)
Allocates a physical position pointer on the storage for generate an id without a content.
|
OPhysicalPosition[] |
ceilingPositions(OPhysicalPosition position) |
void |
close() |
void |
close(boolean flush) |
String |
compression() |
void |
configure(int iId,
String iClusterName) |
void |
configure(OStorage iStorage,
OStorageClusterConfiguration iConfig) |
void |
create(OAtomicOperation atomicOperation) |
OPhysicalPosition |
createRecord(byte[] content,
int recordVersion,
byte recordType,
OPhysicalPosition allocatedPosition,
OAtomicOperation atomicOperation)
Creates a new record in the cluster.
|
void |
delete(OAtomicOperation atomicOperation) |
boolean |
deleteRecord(OAtomicOperation atomicOperation,
long clusterPosition) |
String |
encryption() |
boolean |
exists() |
OPhysicalPosition[] |
floorPositions(OPhysicalPosition position) |
int |
getBinaryVersion() |
long |
getEntries() |
String |
getFileName() |
long |
getFirstPosition() |
int |
getId() |
long |
getLastPosition() |
String |
getName() |
long |
getNextPosition() |
OPhysicalPosition |
getPhysicalPosition(OPhysicalPosition iPPosition)
Fills and return the PhysicalPosition object received as parameter with the physical position
of logical record iPosition
|
ORecordConflictStrategy |
getRecordConflictStrategy() |
long |
getRecordsSize()
Returns the size of the records contained in the cluster in bytes.
|
long |
getTombstonesCount() |
OPhysicalPosition[] |
higherPositions(OPhysicalPosition position) |
boolean |
isDeleted(OPhysicalPosition iPPosition)
Check if a rid is existent and deleted or not existent return true only if delete flag is set.
|
boolean |
isSystemCluster() |
OPhysicalPosition[] |
lowerPositions(OPhysicalPosition position) |
OClusterBrowsePage |
nextPage(long lastPosition) |
void |
open(OAtomicOperation atomicOperation) |
ORawBuffer |
readRecord(long clusterPosition,
boolean prefetchRecords) |
ORawBuffer |
readRecordIfVersionIsNotLatest(long clusterPosition,
int recordVersion) |
void |
setClusterName(String name) |
void |
setEncryption(String encryptionName,
String encryptionKey) |
void |
setRecordConflictStrategy(String conflictStrategy) |
void |
synch() |
void |
updateRecord(long clusterPosition,
byte[] content,
int recordVersion,
byte recordType,
OAtomicOperation atomicOperation) |
void configure(int iId,
String iClusterName)
throws IOException
IOExceptionvoid configure(OStorage iStorage, OStorageClusterConfiguration iConfig) throws IOException
IOExceptionvoid create(OAtomicOperation atomicOperation) throws IOException
IOExceptionvoid open(OAtomicOperation atomicOperation) throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionvoid close(boolean flush)
throws IOException
IOExceptionvoid delete(OAtomicOperation atomicOperation) throws IOException
IOExceptionvoid setClusterName(String name)
void setRecordConflictStrategy(String conflictStrategy)
String encryption()
long getTombstonesCount()
OPhysicalPosition allocatePosition(byte recordType, OAtomicOperation atomicOperation) throws IOException
recordType - the type of record of which allocate the position.atomicOperation - IOExceptionOPhysicalPosition createRecord(byte[] content, int recordVersion, byte recordType, OPhysicalPosition allocatedPosition, OAtomicOperation atomicOperation)
content - the content of the record.recordVersion - the current versionrecordType - the type of the recordallocatedPosition - the eventual allocated position or null if there is no allocated
position.atomicOperation - boolean deleteRecord(OAtomicOperation atomicOperation, long clusterPosition)
void updateRecord(long clusterPosition,
byte[] content,
int recordVersion,
byte recordType,
OAtomicOperation atomicOperation)
ORawBuffer readRecord(long clusterPosition, boolean prefetchRecords) throws IOException
IOExceptionORawBuffer readRecordIfVersionIsNotLatest(long clusterPosition, int recordVersion) throws IOException, ORecordNotFoundException
IOExceptionORecordNotFoundExceptionboolean exists()
OPhysicalPosition getPhysicalPosition(OPhysicalPosition iPPosition) throws IOException
IOExceptionboolean isDeleted(OPhysicalPosition iPPosition) throws IOException
IOExceptionlong getEntries()
long getFirstPosition()
throws IOException
IOExceptionlong getLastPosition()
throws IOException
IOExceptionlong getNextPosition()
throws IOException
IOExceptionString getFileName()
int getId()
void synch()
throws IOException
IOExceptionString getName()
long getRecordsSize()
throws IOException
IOExceptionString compression()
boolean isSystemCluster()
OPhysicalPosition[] higherPositions(OPhysicalPosition position) throws IOException
IOExceptionOPhysicalPosition[] ceilingPositions(OPhysicalPosition position) throws IOException
IOExceptionOPhysicalPosition[] lowerPositions(OPhysicalPosition position) throws IOException
IOExceptionOPhysicalPosition[] floorPositions(OPhysicalPosition position) throws IOException
IOExceptionORecordConflictStrategy getRecordConflictStrategy()
void acquireAtomicExclusiveLock()
OClusterBrowsePage nextPage(long lastPosition) throws IOException
IOExceptionint getBinaryVersion()
Copyright © 2009–2025 OrientDB. All rights reserved.