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() |
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 OCluster
IOException
public void create(OAtomicOperation atomicOperation) throws IOException
create
in interface OCluster
IOException
public void open() throws IOException
open
in interface OCluster
IOException
public void close() throws IOException
close
in interface OCluster
IOException
public void close(boolean flush) throws IOException
close
in interface OCluster
IOException
public OPhysicalPosition allocatePosition(byte recordType, OAtomicOperation atomicOperation) throws IOException
OCluster
allocatePosition
in interface OCluster
recordType
- the type of record of which allocate the position.IOException
public OPhysicalPosition createRecord(byte[] content, int recordVersion, byte recordType, OPhysicalPosition allocatedPosition, OAtomicOperation atomicOperation)
OCluster
createRecord
in interface OCluster
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.public boolean deleteRecord(OAtomicOperation atomicOperation, long clusterPosition)
deleteRecord
in interface OCluster
public void updateRecord(long clusterPosition, byte[] content, int recordVersion, byte recordType, OAtomicOperation atomicOperation)
updateRecord
in interface OCluster
public ORawBuffer readRecord(long clusterPosition, boolean prefetchRecords) throws IOException
readRecord
in interface OCluster
IOException
public ORawBuffer readRecordIfVersionIsNotLatest(long clusterPosition, int recordVersion) throws IOException, ORecordNotFoundException
readRecordIfVersionIsNotLatest
in interface OCluster
IOException
ORecordNotFoundException
public void setClusterName(String name)
setClusterName
in interface OCluster
public void setRecordConflictStrategy(String conflictStrategy)
setRecordConflictStrategy
in interface OCluster
public void setEncryption(String encryptionName, String encryptionKey)
setEncryption
in interface OCluster
public void delete(OAtomicOperation atomicOperation) throws IOException
delete
in interface OCluster
IOException
public Object set(OCluster.ATTRIBUTES iAttribute, Object iValue) throws IOException
IOException
public String encryption()
encryption
in interface OCluster
public OPhysicalPosition getPhysicalPosition(OPhysicalPosition iPPosition) throws IOException
OCluster
getPhysicalPosition
in interface OCluster
IOException
public long getEntries()
getEntries
in interface OCluster
public long getTombstonesCount()
getTombstonesCount
in interface OCluster
public long getFirstPosition()
getFirstPosition
in interface OCluster
public long getLastPosition()
getLastPosition
in interface OCluster
public long getNextPosition() throws IOException
getNextPosition
in interface OCluster
IOException
public String getFileName()
getFileName
in interface OCluster
public void synch() throws IOException
synch
in interface OCluster
IOException
public long getRecordsSize()
OCluster
getRecordsSize
in interface OCluster
public boolean isSystemCluster()
isSystemCluster
in interface OCluster
public OPhysicalPosition[] higherPositions(OPhysicalPosition position)
higherPositions
in interface OCluster
public OPhysicalPosition[] lowerPositions(OPhysicalPosition position)
lowerPositions
in interface OCluster
public OPhysicalPosition[] ceilingPositions(OPhysicalPosition position) throws IOException
ceilingPositions
in interface OCluster
IOException
public OPhysicalPosition[] floorPositions(OPhysicalPosition position) throws IOException
floorPositions
in interface OCluster
IOException
public boolean isDeleted(OPhysicalPosition iPPosition) throws IOException
OCluster
isDeleted
in interface OCluster
IOException
public String compression()
compression
in interface OCluster
public ORecordConflictStrategy getRecordConflictStrategy()
getRecordConflictStrategy
in interface OCluster
public void acquireAtomicExclusiveLock()
OCluster
acquireAtomicExclusiveLock
in interface OCluster
public OClusterBrowsePage nextPage(long lastPosition)
public int getBinaryVersion()
getBinaryVersion
in interface OCluster
Copyright © 2009–2020 OrientDB. All rights reserved.