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() |
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
IOException
void configure(OStorage iStorage, OStorageClusterConfiguration iConfig) throws IOException
IOException
void create(OAtomicOperation atomicOperation) throws IOException
IOException
void open() throws IOException
IOException
void close() throws IOException
IOException
void close(boolean flush) throws IOException
IOException
void delete(OAtomicOperation atomicOperation) throws IOException
IOException
void 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
- IOException
OPhysicalPosition 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
IOException
ORawBuffer readRecordIfVersionIsNotLatest(long clusterPosition, int recordVersion) throws IOException, ORecordNotFoundException
IOException
ORecordNotFoundException
boolean exists()
OPhysicalPosition getPhysicalPosition(OPhysicalPosition iPPosition) throws IOException
IOException
boolean isDeleted(OPhysicalPosition iPPosition) throws IOException
IOException
long getEntries()
long getFirstPosition() throws IOException
IOException
long getLastPosition() throws IOException
IOException
long getNextPosition() throws IOException
IOException
String getFileName()
int getId()
void synch() throws IOException
IOException
String getName()
long getRecordsSize() throws IOException
IOException
String compression()
boolean isSystemCluster()
OPhysicalPosition[] higherPositions(OPhysicalPosition position) throws IOException
IOException
OPhysicalPosition[] ceilingPositions(OPhysicalPosition position) throws IOException
IOException
OPhysicalPosition[] lowerPositions(OPhysicalPosition position) throws IOException
IOException
OPhysicalPosition[] floorPositions(OPhysicalPosition position) throws IOException
IOException
ORecordConflictStrategy getRecordConflictStrategy()
void acquireAtomicExclusiveLock()
OClusterBrowsePage nextPage(long lastPosition) throws IOException
IOException
int getBinaryVersion()
Copyright © 2009–2020 OrientDB. All rights reserved.