public interface OCluster
| Modifier and Type | Interface and Description |
|---|---|
static class |
OCluster.ATTRIBUTES |
| Modifier and Type | Method and Description |
|---|---|
OClusterEntryIterator |
absoluteIterator() |
void |
acquireAtomicExclusiveLock()
Acquires exclusive lock in the active atomic operation running on the current thread for this cluster.
|
OPhysicalPosition |
allocatePosition(byte recordType)
Allocates a physical position pointer on the storage for generate an id without a content.
|
OPhysicalPosition[] |
ceilingPositions(OPhysicalPosition position) |
int |
checkClusterConsistency() |
void |
close() |
void |
close(boolean flush) |
void |
compact() |
String |
compression() |
void |
configure(OStorage iStorage,
int iId,
String iClusterName,
Object... iParameters) |
void |
configure(OStorage iStorage,
OStorageClusterConfiguration iConfig) |
void |
create(int iStartSize) |
OPhysicalPosition |
createRecord(byte[] content,
int recordVersion,
byte recordType,
OPhysicalPosition allocatedPosition)
Creates a new record in the cluster.
|
void |
delete() |
boolean |
deleteRecord(long clusterPosition) |
String |
encryption() |
boolean |
exists() |
OPhysicalPosition[] |
floorPositions(OPhysicalPosition position) |
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(long position)
Hides records content by putting tombstone on the records position but does not delete record itself.
|
OPhysicalPosition[] |
higherPositions(OPhysicalPosition position) |
boolean |
isHashBased() |
boolean |
isSystemCluster() |
OPhysicalPosition[] |
lowerPositions(OPhysicalPosition position) |
void |
open() |
ORawBuffer |
readRecord(long clusterPosition,
boolean prefetchRecords) |
ORawBuffer |
readRecordIfVersionIsNotLatest(long clusterPosition,
int recordVersion) |
float |
recordGrowFactor() |
float |
recordOverflowGrowFactor() |
void |
recycleRecord(long clusterPosition)
Recycling a record position that was deleted.
|
Object |
set(OCluster.ATTRIBUTES iAttribute,
Object iValue) |
void |
synch() |
void |
truncate()
Truncates the cluster content.
|
void |
updateRecord(long clusterPosition,
byte[] content,
int recordVersion,
byte recordType) |
void configure(OStorage iStorage, int iId, String iClusterName, Object... iParameters) throws IOException
IOExceptionvoid configure(OStorage iStorage, OStorageClusterConfiguration iConfig) throws IOException
IOExceptionvoid create(int iStartSize)
throws IOException
IOExceptionvoid open() throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionvoid close(boolean flush)
throws IOException
IOExceptionvoid delete()
throws IOException
IOExceptionObject set(OCluster.ATTRIBUTES iAttribute, Object iValue) throws IOException
IOExceptionString encryption()
long getTombstonesCount()
void truncate()
throws IOException
IOExceptionvoid compact()
throws IOException
IOExceptionOPhysicalPosition allocatePosition(byte recordType) throws IOException
recordType - the type of record of which allocate the position.IOExceptionOPhysicalPosition createRecord(byte[] content, int recordVersion, byte recordType, OPhysicalPosition allocatedPosition) throws IOException
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.IOExceptionboolean deleteRecord(long clusterPosition)
throws IOException
IOExceptionvoid updateRecord(long clusterPosition,
byte[] content,
int recordVersion,
byte recordType)
throws IOException
IOExceptionvoid recycleRecord(long clusterPosition)
throws IOException
IOExceptionORawBuffer readRecord(long clusterPosition, boolean prefetchRecords) throws IOException
IOExceptionORawBuffer readRecordIfVersionIsNotLatest(long clusterPosition, int recordVersion) throws IOException, ORecordNotFoundException
IOExceptionORecordNotFoundExceptionboolean exists()
OPhysicalPosition getPhysicalPosition(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
IOExceptionfloat recordGrowFactor()
float recordOverflowGrowFactor()
String compression()
boolean isHashBased()
boolean isSystemCluster()
OClusterEntryIterator absoluteIterator()
OPhysicalPosition[] higherPositions(OPhysicalPosition position) throws IOException
IOExceptionOPhysicalPosition[] ceilingPositions(OPhysicalPosition position) throws IOException
IOExceptionOPhysicalPosition[] lowerPositions(OPhysicalPosition position) throws IOException
IOExceptionOPhysicalPosition[] floorPositions(OPhysicalPosition position) throws IOException
IOExceptionboolean hideRecord(long position)
throws IOException
This method is used in case of record content itself is broken and cannot be read or deleted. So it is emergence method.
position - Position of record in clusterUnsupportedOperationException - In case current version of cluster does not support given operation.IOExceptionORecordConflictStrategy getRecordConflictStrategy()
void acquireAtomicExclusiveLock()
int checkClusterConsistency()
throws IOException
IOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.