Interface ORID
- All Superinterfaces:
Comparable<OIdentifiable>,Comparator<OIdentifiable>,OIdentifiable,OSerializableStream,Serializable
- All Known Implementing Classes:
OContextualRecordId,OImmutableRecordId,ORecordId
RecordID interface that represents a recordid in database. RecordID are made of 2 numbers:
cluster id (cluster number) and cluster position (absolute position inside the cluster). Loading
a record by its RecordID allows O(1) performance, no matter the database size.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final longstatic final charstatic final charstatic final long -
Method Summary
Modifier and TypeMethodDescriptioncopy()intlongbooleanisNew()booleanbooleanbooleanisValid()next()nextRid()Deprecated.voidreset()inttoStream(OutputStream iStream) toString(StringBuilder iBuffer) Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface com.orientechnologies.orient.core.db.record.OIdentifiable
getIdentity, getRecordMethods inherited from interface com.orientechnologies.orient.core.serialization.OSerializableStream
fromStream, toStream
-
Field Details
-
PREFIX
static final char PREFIX- See Also:
-
SEPARATOR
static final char SEPARATOR- See Also:
-
CLUSTER_MAX
static final int CLUSTER_MAX- See Also:
-
CLUSTER_ID_INVALID
static final int CLUSTER_ID_INVALID- See Also:
-
CLUSTER_POS_INVALID
static final long CLUSTER_POS_INVALID- See Also:
-
VERSION_POS_INVALID
static final long VERSION_POS_INVALID- See Also:
-
-
Method Details
-
getClusterId
int getClusterId() -
getClusterPosition
long getClusterPosition() -
reset
void reset() -
isPersistent
boolean isPersistent() -
isValid
boolean isValid() -
isNew
boolean isNew() -
isTemporary
boolean isTemporary() -
copy
ORID copy() -
next
String next() -
nextRid
Deprecated.Deprecated since v2.2 -
toStream
- Throws:
IOException
-
toString
-