
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(OAtomicOperation atomicOperation,
byte recordType)
Allocates a physical position pointer on the storage for generate an id without a content.
|
OPhysicalPosition[] |
ceilingPositions(OPhysicalPosition position) |
void |
close(boolean flush) |
String |
compression() |
void |
configure(OStorage iStorage,
int iId,
String iClusterName,
Object... iParameters) |
void |
configure(OStorage iStorage,
OStorageClusterConfiguration iConfig) |
void |
create(OAtomicOperation atomicOperation,
int iStartSize) |
OPhysicalPosition |
createRecord(OAtomicOperation atomicOperation,
byte[] content,
int recordVersion,
byte recordType,
OPhysicalPosition allocatedPosition)
Creates a new record in the cluster.
|
void |
delete(OAtomicOperation atomicOperation) |
boolean |
deleteRecord(OAtomicOperation atomicOperation,
long clusterPosition) |
String |
encryption() |
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() |
boolean |
hideRecord(OAtomicOperation atomicOperation,
long position)
Hides records content by putting tombstone on the records position but does not delete record itself.
|
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() |
ORawBuffer |
readRecord(long clusterPosition,
boolean prefetchRecords) |
ORawBuffer |
readRecordIfVersionIsNotLatest(long clusterPosition,
int recordVersion) |
float |
recordGrowFactor() |
float |
recordOverflowGrowFactor() |
void |
recycleRecord(OAtomicOperation atomicOperation,
long clusterPosition,
byte[] content,
int recordVersion,
byte recordType)
Recycling a record position that was deleted.
|
Object |
set(OAtomicOperation atomicOperation,
OCluster.ATTRIBUTES iAttribute,
Object iValue) |
void |
synch() |
void |
truncate(OAtomicOperation atomicOperation)
Truncates the cluster content.
|
void |
updateRecord(OAtomicOperation atomicOperation,
long clusterPosition,
byte[] content,
int recordVersion,
byte recordType) |
public void configure(OStorage iStorage, int iId, String iClusterName, Object... iParameters)
public void configure(OStorage iStorage, OStorageClusterConfiguration iConfig) throws IOException
configure in interface OClusterIOExceptionpublic void create(OAtomicOperation atomicOperation, int iStartSize) throws IOException
create in interface OClusterIOExceptionpublic void open()
throws IOException
open in interface OClusterIOExceptionpublic void close(boolean flush)
throws IOException
close in interface OClusterIOExceptionpublic OPhysicalPosition allocatePosition(OAtomicOperation atomicOperation, byte recordType) throws IOException
OClusterallocatePosition in interface OClusterrecordType - the type of record of which allocate the position.IOExceptionpublic OPhysicalPosition createRecord(OAtomicOperation atomicOperation, byte[] content, int recordVersion, byte recordType, OPhysicalPosition allocatedPosition) throws IOException
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.IOExceptionpublic boolean deleteRecord(OAtomicOperation atomicOperation, long clusterPosition) throws IOException
deleteRecord in interface OClusterIOExceptionpublic void updateRecord(OAtomicOperation atomicOperation, long clusterPosition, byte[] content, int recordVersion, byte recordType) throws IOException
updateRecord in interface OClusterIOExceptionpublic void recycleRecord(OAtomicOperation atomicOperation, long clusterPosition, byte[] content, int recordVersion, byte recordType) throws IOException
OClusterrecycleRecord in interface OClusterIOExceptionpublic 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 delete(OAtomicOperation atomicOperation) throws IOException
delete in interface OClusterIOExceptionpublic Object set(OAtomicOperation atomicOperation, OCluster.ATTRIBUTES iAttribute, Object iValue) throws IOException
set in interface OClusterIOExceptionpublic String encryption()
encryption in interface OClusterpublic void truncate(OAtomicOperation atomicOperation) throws IOException
OClustertruncate in interface OClusterIOExceptionpublic 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 float recordGrowFactor()
recordGrowFactor in interface OClusterpublic float recordOverflowGrowFactor()
recordOverflowGrowFactor in interface OClusterpublic String compression()
compression in interface OClusterpublic boolean hideRecord(OAtomicOperation atomicOperation, long position)
OClusterThis method is used in case of record content itself is broken and cannot be read or deleted. So it is emergence method.
hideRecord in interface OClusterposition - Position of record in clusterpublic 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.