Package com.arcadedb.graph
Class ImmutableLightEdge
- java.lang.Object
-
- com.arcadedb.database.BaseRecord
-
- com.arcadedb.database.BaseDocument
-
- com.arcadedb.database.ImmutableDocument
-
- com.arcadedb.graph.ImmutableLightEdge
-
- All Implemented Interfaces:
Document
,Identifiable
,Record
,Edge
,LightEdge
,Externalizable
,Serializable
public class ImmutableLightEdge extends ImmutableDocument implements LightEdge
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.arcadedb.database.BaseDocument
propertiesStartingPosition, type
-
Fields inherited from class com.arcadedb.database.BaseRecord
buffer, database, rid
-
Fields inherited from interface com.arcadedb.database.Document
RECORD_TYPE
-
Fields inherited from interface com.arcadedb.graph.LightEdge
RECORD_TYPE
-
-
Constructor Summary
Constructors Constructor Description ImmutableLightEdge(Database graph, DocumentType type, RID edgeRID, RID out, RID in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge
asEdge()
Returns the edge record.Edge
asEdge(boolean loadContent)
Returns the edge record.protected boolean
checkForLazyLoading()
Object
get(String propertyName)
RID
getIn()
Vertex
getInVertex()
RID
getOut()
Vertex
getOutVertex()
Set<String>
getPropertyNames()
byte
getRecordType()
Vertex
getVertex(Vertex.DIRECTION iDirection)
MutableEdge
modify()
org.json.JSONObject
toJSON()
Map<String,Object>
toMap()
String
toString()
-
Methods inherited from class com.arcadedb.database.ImmutableDocument
has
-
Methods inherited from class com.arcadedb.database.BaseDocument
asDocument, asDocument, detach, getBoolean, getByte, getDate, getDecimal, getDouble, getEmbedded, getFloat, getInteger, getLong, getShort, getString, getType, getTypeName, readExternal, reload, writeExternal
-
Methods inherited from class com.arcadedb.database.BaseRecord
asVertex, asVertex, delete, equals, getBuffer, getDatabase, getIdentity, getRecord, getRecord, hashCode, setBuffer
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.arcadedb.database.Document
asDocument, asDocument, detach, getBoolean, getByte, getDate, getDecimal, getDouble, getEmbedded, getFloat, getInteger, getLong, getShort, getString, getType, getTypeName, has
-
Methods inherited from interface com.arcadedb.database.Identifiable
asVertex, asVertex, getRecord, getRecord
-
Methods inherited from interface com.arcadedb.database.Record
delete, getDatabase, getIdentity, reload
-
-
-
-
Constructor Detail
-
ImmutableLightEdge
public ImmutableLightEdge(Database graph, DocumentType type, RID edgeRID, RID out, RID in)
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceDocument
- Overrides:
get
in classImmutableDocument
-
modify
public MutableEdge modify()
-
getOutVertex
public Vertex getOutVertex()
- Specified by:
getOutVertex
in interfaceEdge
-
getInVertex
public Vertex getInVertex()
- Specified by:
getInVertex
in interfaceEdge
-
getVertex
public Vertex getVertex(Vertex.DIRECTION iDirection)
-
getPropertyNames
public Set<String> getPropertyNames()
- Specified by:
getPropertyNames
in interfaceDocument
- Overrides:
getPropertyNames
in classImmutableDocument
-
getRecordType
public byte getRecordType()
- Specified by:
getRecordType
in interfaceRecord
- Overrides:
getRecordType
in classBaseDocument
-
checkForLazyLoading
protected boolean checkForLazyLoading()
- Overrides:
checkForLazyLoading
in classImmutableDocument
-
toMap
public Map<String,Object> toMap()
- Specified by:
toMap
in interfaceDocument
- Overrides:
toMap
in classImmutableDocument
-
asEdge
public Edge asEdge()
Description copied from interface:Identifiable
Returns the edge record. If the record is not an edge, a UnsupportedOperationException exception is thrown. *- Specified by:
asEdge
in interfaceEdge
- Specified by:
asEdge
in interfaceIdentifiable
- Overrides:
asEdge
in classBaseRecord
- Returns:
- the
Edge
-
asEdge
public Edge asEdge(boolean loadContent)
Description copied from interface:Identifiable
Returns the edge record. If the record is not an edge, a UnsupportedOperationException exception is thrown.- Specified by:
asEdge
in interfaceEdge
- Specified by:
asEdge
in interfaceIdentifiable
- Overrides:
asEdge
in classBaseRecord
- Parameters:
loadContent
- specifies if pre-load the record content- Returns:
- the
Edge
-
toJSON
public org.json.JSONObject toJSON()
-
toString
public String toString()
- Overrides:
toString
in classImmutableDocument
-
-