
OCluster.ATTRIBUTES| Constructor and Description |
|---|
OClusterRemote() |
| 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) |
Object |
set(OCluster.ATTRIBUTES iAttribute,
Object iValue) |
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) |
public void configure(int iId,
String iClusterName)
public void configure(OStorage iStorage, OStorageClusterConfiguration iConfig) throws IOException
configure in interface OClusterIOExceptionpublic void create(OAtomicOperation atomicOperation) throws IOException
create in interface OClusterIOExceptionpublic void open(OAtomicOperation atomicOperation) throws IOException
open in interface OClusterIOExceptionpublic void close()
throws IOException
close in interface OClusterIOExceptionpublic void close(boolean flush)
throws IOException
close in interface OClusterIOExceptionpublic OPhysicalPosition allocatePosition(byte recordType, OAtomicOperation atomicOperation) throws IOException
OClusterallocatePosition in interface OClusterrecordType - the type of record of which allocate the position.IOExceptionpublic OPhysicalPosition createRecord(byte[] content, int recordVersion, byte recordType, OPhysicalPosition allocatedPosition, OAtomicOperation atomicOperation)
OClustercreateRecord in interface OClustercontent - 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.public boolean deleteRecord(OAtomicOperation atomicOperation, long clusterPosition)
deleteRecord in interface OClusterpublic void updateRecord(long clusterPosition,
byte[] content,
int recordVersion,
byte recordType,
OAtomicOperation atomicOperation)
updateRecord in interface OClusterpublic ORawBuffer readRecord(long clusterPosition, boolean prefetchRecords) throws IOException
readRecord in interface OClusterIOExceptionpublic ORawBuffer readRecordIfVersionIsNotLatest(long clusterPosition, int recordVersion) throws IOException, ORecordNotFoundException
readRecordIfVersionIsNotLatest in interface OClusterIOExceptionORecordNotFoundExceptionpublic void setClusterName(String name)
setClusterName in interface OClusterpublic void setRecordConflictStrategy(String conflictStrategy)
setRecordConflictStrategy in interface OClusterpublic void setEncryption(String encryptionName, String encryptionKey)
setEncryption in interface OClusterpublic void delete(OAtomicOperation atomicOperation) throws IOException
delete in interface OClusterIOExceptionpublic Object set(OCluster.ATTRIBUTES iAttribute, Object iValue) throws IOException
IOExceptionpublic String encryption()
encryption in interface OClusterpublic OPhysicalPosition getPhysicalPosition(OPhysicalPosition iPPosition) throws IOException
OClustergetPhysicalPosition in interface OClusterIOExceptionpublic long getEntries()
getEntries in interface OClusterpublic long getTombstonesCount()
getTombstonesCount in interface OClusterpublic long getFirstPosition()
getFirstPosition in interface OClusterpublic long getLastPosition()
getLastPosition in interface OClusterpublic long getNextPosition()
throws IOException
getNextPosition in interface OClusterIOExceptionpublic String getFileName()
getFileName in interface OClusterpublic void synch()
throws IOException
synch in interface OClusterIOExceptionpublic long getRecordsSize()
OClustergetRecordsSize in interface OClusterpublic boolean isSystemCluster()
isSystemCluster in interface OClusterpublic OPhysicalPosition[] higherPositions(OPhysicalPosition position)
higherPositions in interface OClusterpublic OPhysicalPosition[] lowerPositions(OPhysicalPosition position)
lowerPositions in interface OClusterpublic OPhysicalPosition[] ceilingPositions(OPhysicalPosition position) throws IOException
ceilingPositions in interface OClusterIOExceptionpublic OPhysicalPosition[] floorPositions(OPhysicalPosition position) throws IOException
floorPositions in interface OClusterIOExceptionpublic boolean isDeleted(OPhysicalPosition iPPosition) throws IOException
OClusterisDeleted in interface OClusterIOExceptionpublic String compression()
compression in interface OClusterpublic ORecordConflictStrategy getRecordConflictStrategy()
getRecordConflictStrategy in interface OClusterpublic void acquireAtomicExclusiveLock()
OClusteracquireAtomicExclusiveLock in interface OClusterpublic OClusterBrowsePage nextPage(long lastPosition)
public int getBinaryVersion()
getBinaryVersion in interface OClusterCopyright © 2009–2025 OrientDB. All rights reserved.