|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|
|
|
<html lang="en"> |
|
<head> |
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
<title>AbstractElement (JanusGraph-Core: Core Library for JanusGraph 1.0.0 API)</title> |
|
<meta name="date" content="2023-10-21"> |
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
|
<script type="text/javascript" src="../../../../script.js"></script> |
|
</head> |
|
<body> |
|
<script type="text/javascript"><!-- |
|
try { |
|
if (location.href.indexOf('is-external=true') == -1) { |
|
parent.document.title="AbstractElement (JanusGraph-Core: Core Library for JanusGraph 1.0.0 API)"; |
|
} |
|
} |
|
catch(err) { |
|
} |
|
|
|
var methods = {"i0":10,"i1":9,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":9,"i13":10}; |
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
|
var altColor = "altColor"; |
|
var rowColor = "rowColor"; |
|
var tableTab = "tableTab"; |
|
var activeTableTab = "activeTableTab"; |
|
</script> |
|
<noscript> |
|
<div>JavaScript is disabled on your browser.</div> |
|
</noscript> |
|
|
|
<div class="topNav"><a name="navbar.top"> |
|
|
|
</a> |
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
|
<a name="navbar.top.firstrow"> |
|
|
|
</a> |
|
<ul class="navList" title="Navigation"> |
|
<li><a href="../../../../overview-summary.html">Overview</a></li> |
|
<li><a href="package-summary.html">Package</a></li> |
|
<li class="navBarCell1Rev">Class</li> |
|
<li><a href="class-use/AbstractElement.html">Use</a></li> |
|
<li><a href="package-tree.html">Tree</a></li> |
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
|
<li><a href="../../../../index-all.html">Index</a></li> |
|
<li><a href="../../../../help-doc.html">Help</a></li> |
|
</ul> |
|
</div> |
|
<div class="subNav"> |
|
<ul class="navList"> |
|
<li>Prev Class</li> |
|
<li><a href="../../../../org/janusgraph/graphdb/internal/ElementCategory.html" title="enum in org.janusgraph.graphdb.internal"><span class="typeNameLink">Next Class</span></a></li> |
|
</ul> |
|
<ul class="navList"> |
|
<li><a href="../../../../index.html?org/janusgraph/graphdb/internal/AbstractElement.html" target="_top">Frames</a></li> |
|
<li><a href="AbstractElement.html" target="_top">No Frames</a></li> |
|
</ul> |
|
<ul class="navList" id="allclasses_navbar_top"> |
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
|
</ul> |
|
<div> |
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
</div> |
|
<div> |
|
<ul class="subNavList"> |
|
<li>Summary: </li> |
|
<li>Nested | </li> |
|
<li>Field | </li> |
|
<li><a href="#constructor.summary">Constr</a> | </li> |
|
<li><a href="#method.summary">Method</a></li> |
|
</ul> |
|
<ul class="subNavList"> |
|
<li>Detail: </li> |
|
<li>Field | </li> |
|
<li><a href="#constructor.detail">Constr</a> | </li> |
|
<li><a href="#method.detail">Method</a></li> |
|
</ul> |
|
</div> |
|
<a name="skip.navbar.top"> |
|
|
|
</a></div> |
|
|
|
|
|
<div class="header"> |
|
<div class="subTitle">org.janusgraph.graphdb.internal</div> |
|
<h2 title="Class AbstractElement" class="title">Class AbstractElement</h2> |
|
</div> |
|
<div class="contentContainer"> |
|
<ul class="inheritance"> |
|
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
|
<li> |
|
<ul class="inheritance"> |
|
<li>org.janusgraph.graphdb.internal.AbstractElement</li> |
|
</ul> |
|
</li> |
|
</ul> |
|
<div class="description"> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<dl> |
|
<dt>All Implemented Interfaces:</dt> |
|
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a>>, org.apache.tinkerpop.gremlin.structure.Element, <a href="../../../../org/janusgraph/core/Idfiable.html" title="interface in org.janusgraph.core">Idfiable</a>, <a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a>, <a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html" title="interface in org.janusgraph.graphdb.internal">InternalElement</a>, <a href="../../../../org/janusgraph/util/datastructures/Removable.html" title="interface in org.janusgraph.util.datastructures">Removable</a></dd> |
|
</dl> |
|
<dl> |
|
<dt>Direct Known Subclasses:</dt> |
|
<dd><a href="../../../../org/janusgraph/graphdb/relations/AbstractTypedRelation.html" title="class in org.janusgraph.graphdb.relations">AbstractTypedRelation</a>, <a href="../../../../org/janusgraph/graphdb/vertices/AbstractVertex.html" title="class in org.janusgraph.graphdb.vertices">AbstractVertex</a></dd> |
|
</dl> |
|
<hr> |
|
<br> |
|
<pre>public abstract class <span class="typeNameLabel">AbstractElement</span> |
|
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> |
|
implements <a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html" title="interface in org.janusgraph.graphdb.internal">InternalElement</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a>></pre> |
|
<div class="block">AbstractElement is the base class for all elements in JanusGraph. |
|
It is defined and uniquely identified by its id. |
|
<p> |
|
For the id, it holds that: |
|
id<0: Temporary id, will be assigned id>0 when the transaction is committed |
|
id=0: Virtual or implicit element that does not physically exist in the database |
|
id>0: Physically persisted element</div> |
|
<dl> |
|
<dt><span class="simpleTagLabel">Author:</span></dt> |
|
<dd>Matthias Broecheler (me@matthiasb.com)</dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
</div> |
|
<div class="summary"> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
|
|
<ul class="blockList"> |
|
<li class="blockList"><a name="nested.class.summary"> |
|
|
|
</a> |
|
<h3>Nested Class Summary</h3> |
|
<ul class="blockList"> |
|
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.tinkerpop.gremlin.structure.Element"> |
|
|
|
</a> |
|
<h3>Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element</h3> |
|
<code>org.apache.tinkerpop.gremlin.structure.Element.Exceptions</code></li> |
|
</ul> |
|
</li> |
|
</ul> |
|
|
|
<ul class="blockList"> |
|
<li class="blockList"><a name="constructor.summary"> |
|
|
|
</a> |
|
<h3>Constructor Summary</h3> |
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
|
<tr> |
|
<th class="colOne" scope="col">Constructor and Description</th> |
|
</tr> |
|
<tr class="altColor"> |
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#AbstractElement-java.lang.Object-">AbstractElement</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> id)</code> </td> |
|
</tr> |
|
</table> |
|
</li> |
|
</ul> |
|
|
|
<ul class="blockList"> |
|
<li class="blockList"><a name="method.summary"> |
|
|
|
</a> |
|
<h3>Method Summary</h3> |
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
|
<tr> |
|
<th class="colFirst" scope="col">Modifier and Type</th> |
|
<th class="colLast" scope="col">Method and Description</th> |
|
</tr> |
|
<tr id="i0" class="altColor"> |
|
<td class="colFirst"><code><a href="../../../../org/janusgraph/graphdb/internal/InternalVertex.html" title="interface in org.janusgraph.graphdb.internal">InternalVertex</a></code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#clone--">clone</a></span>()</code> </td> |
|
</tr> |
|
<tr id="i1" class="rowColor"> |
|
<td class="colFirst"><code>static int</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#compare-org.janusgraph.core.JanusGraphElement-org.janusgraph.core.JanusGraphElement-">compare</a></span>(<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a> e1, |
|
<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a> e2)</code> </td> |
|
</tr> |
|
<tr id="i2" class="altColor"> |
|
<td class="colFirst"><code>int</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#compareTo-org.janusgraph.core.JanusGraphElement-">compareTo</a></span>(<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a> other)</code> </td> |
|
</tr> |
|
<tr id="i3" class="rowColor"> |
|
<td class="colFirst"><code>boolean</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> other)</code> </td> |
|
</tr> |
|
<tr id="i4" class="altColor"> |
|
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#getCompareId--">getCompareId</a></span>()</code> |
|
<div class="block">Long identifier used to compare elements.</div> |
|
</td> |
|
</tr> |
|
<tr id="i5" class="rowColor"> |
|
<td class="colFirst"><code>int</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#hashCode--">hashCode</a></span>()</code> </td> |
|
</tr> |
|
<tr id="i6" class="altColor"> |
|
<td class="colFirst"><code>boolean</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#hasId--">hasId</a></span>()</code> |
|
<div class="block">Checks whether this entity has a unique identifier.</div> |
|
</td> |
|
</tr> |
|
<tr id="i7" class="rowColor"> |
|
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#id--">id</a></span>()</code> |
|
<div class="block">Returns a unique identifier for this entity.</div> |
|
</td> |
|
</tr> |
|
<tr id="i8" class="altColor"> |
|
<td class="colFirst"><code>boolean</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#isInvisible--">isInvisible</a></span>()</code> |
|
<div class="block">Whether this element is invisible and should only be returned to queries that explicitly ask for invisible elements.</div> |
|
</td> |
|
</tr> |
|
<tr id="i9" class="rowColor"> |
|
<td class="colFirst"><code>boolean</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#isLoaded--">isLoaded</a></span>()</code> |
|
<div class="block">Checks whether this entity has been loaded into the current transaction and not yet modified.</div> |
|
</td> |
|
</tr> |
|
<tr id="i10" class="altColor"> |
|
<td class="colFirst"><code>boolean</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#isNew--">isNew</a></span>()</code> |
|
<div class="block">Checks whether this entity has been newly created in the current transaction.</div> |
|
</td> |
|
</tr> |
|
<tr id="i11" class="rowColor"> |
|
<td class="colFirst"><code>boolean</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#isRemoved--">isRemoved</a></span>()</code> |
|
<div class="block">Checks whether this entity has been deleted into the current transaction.</div> |
|
</td> |
|
</tr> |
|
<tr id="i12" class="altColor"> |
|
<td class="colFirst"><code>static boolean</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#isTemporaryId-java.lang.Object-">isTemporaryId</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> elementId)</code> </td> |
|
</tr> |
|
<tr id="i13" class="rowColor"> |
|
<td class="colFirst"><code>void</code></td> |
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#setId-java.lang.Object-">setId</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> id)</code> </td> |
|
</tr> |
|
</table> |
|
<ul class="blockList"> |
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
|
|
|
</a> |
|
<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
|
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
|
</ul> |
|
<ul class="blockList"> |
|
<li class="blockList"><a name="methods.inherited.from.class.org.janusgraph.graphdb.internal.InternalElement"> |
|
|
|
</a> |
|
<h3>Methods inherited from interface org.janusgraph.graphdb.internal.<a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html" title="interface in org.janusgraph.graphdb.internal">InternalElement</a></h3> |
|
<code><a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html#getLifeCycle--">getLifeCycle</a>, <a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html#graph--">graph</a>, <a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html#it--">it</a>, <a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html#tx--">tx</a></code></li> |
|
</ul> |
|
<ul class="blockList"> |
|
<li class="blockList"><a name="methods.inherited.from.class.org.janusgraph.core.JanusGraphElement"> |
|
|
|
</a> |
|
<h3>Methods inherited from interface org.janusgraph.core.<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a></h3> |
|
<code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#property-java.lang.String-V-">property</a>, <a href="../../../../org/janusgraph/core/JanusGraphElement.html#remove--">remove</a>, <a href="../../../../org/janusgraph/core/JanusGraphElement.html#valueOrNull-org.janusgraph.core.PropertyKey-">valueOrNull</a></code></li> |
|
</ul> |
|
<ul class="blockList"> |
|
<li class="blockList"><a name="methods.inherited.from.class.org.apache.tinkerpop.gremlin.structure.Element"> |
|
|
|
</a> |
|
<h3>Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Element</h3> |
|
<code>keys, label, properties, property, value, values</code></li> |
|
</ul> |
|
</li> |
|
</ul> |
|
</li> |
|
</ul> |
|
</div> |
|
<div class="details"> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
|
|
<ul class="blockList"> |
|
<li class="blockList"><a name="constructor.detail"> |
|
|
|
</a> |
|
<h3>Constructor Detail</h3> |
|
<a name="AbstractElement-java.lang.Object-"> |
|
|
|
</a> |
|
<ul class="blockListLast"> |
|
<li class="blockList"> |
|
<h4>AbstractElement</h4> |
|
<pre>public AbstractElement(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> id)</pre> |
|
</li> |
|
</ul> |
|
</li> |
|
</ul> |
|
|
|
<ul class="blockList"> |
|
<li class="blockList"><a name="method.detail"> |
|
|
|
</a> |
|
<h3>Method Detail</h3> |
|
<a name="isTemporaryId-java.lang.Object-"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>isTemporaryId</h4> |
|
<pre>public static boolean isTemporaryId(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> elementId)</pre> |
|
</li> |
|
</ul> |
|
<a name="hashCode--"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>hashCode</h4> |
|
<pre>public int hashCode()</pre> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
|
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="equals-java.lang.Object-"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>equals</h4> |
|
<pre>public boolean equals(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> other)</pre> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
|
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="compareTo-org.janusgraph.core.JanusGraphElement-"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>compareTo</h4> |
|
<pre>public int compareTo(<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a> other)</pre> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true#compareTo-T-" title="class or interface in java.lang">compareTo</a></code> in interface <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a>></code></dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="compare-org.janusgraph.core.JanusGraphElement-org.janusgraph.core.JanusGraphElement-"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>compare</h4> |
|
<pre>public static int compare(<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a> e1, |
|
<a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a> e2)</pre> |
|
</li> |
|
</ul> |
|
<a name="clone--"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>clone</h4> |
|
<pre>public <a href="../../../../org/janusgraph/graphdb/internal/InternalVertex.html" title="interface in org.janusgraph.graphdb.internal">InternalVertex</a> clone() |
|
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/CloneNotSupportedException.html?is-external=true" title="class or interface in java.lang">CloneNotSupportedException</a></pre> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
|
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
|
<dt><span class="throwsLabel">Throws:</span></dt> |
|
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/CloneNotSupportedException.html?is-external=true" title="class or interface in java.lang">CloneNotSupportedException</a></code></dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="getCompareId--"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>getCompareId</h4> |
|
<pre>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> getCompareId()</pre> |
|
<div class="block">Long identifier used to compare elements. Often, this is the same as <a href="../../../../org/janusgraph/graphdb/internal/AbstractElement.html#id--"><code>id()</code></a> |
|
but some instances of elements may be considered the same even if their ids differ. In that case, |
|
this method should be overwritten to return an id that can be used for comparison.</div> |
|
<dl> |
|
<dt><span class="returnLabel">Returns:</span></dt> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="id--"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>id</h4> |
|
<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> id()</pre> |
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#id--">JanusGraphElement</a></code></span></div> |
|
<div class="block">Returns a unique identifier for this entity. |
|
<p> |
|
The unique identifier may only be set when the transaction in which entity is created commits. |
|
Some entities are never assigned a unique identifier if they depend on a parent entity. |
|
<p> |
|
JanusGraph allocates blocks of identifiers and automatically assigns identifiers to elements |
|
automatically be default. This behavior can be partially overridden by setting |
|
<a href="../../../../org/janusgraph/graphdb/configuration/GraphDatabaseConfiguration.html#ALLOW_SETTING_VERTEX_ID"><code>GraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_ID</code></a></div> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code>id</code> in interface <code>org.apache.tinkerpop.gremlin.structure.Element</code></dd> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code><a href="../../../../org/janusgraph/core/Idfiable.html#id--">id</a></code> in interface <code><a href="../../../../org/janusgraph/core/Idfiable.html" title="interface in org.janusgraph.core">Idfiable</a></code></dd> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#id--">id</a></code> in interface <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a></code></dd> |
|
<dt><span class="returnLabel">Returns:</span></dt> |
|
<dd>The unique identifier for this entity</dd> |
|
<dt><span class="seeLabel">See Also:</span></dt> |
|
<dd><a href="../../../../org/janusgraph/core/JanusGraphElement.html#hasId--"><code>JanusGraphElement.hasId()</code></a></dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="hasId--"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>hasId</h4> |
|
<pre>public boolean hasId()</pre> |
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#hasId--">JanusGraphElement</a></code></span></div> |
|
<div class="block">Checks whether this entity has a unique identifier. |
|
<p> |
|
Note that some entities may never be assigned an identifier and others will only be |
|
assigned an identifier at the end of a transaction.</div> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#hasId--">hasId</a></code> in interface <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a></code></dd> |
|
<dt><span class="returnLabel">Returns:</span></dt> |
|
<dd>true if this entity has been assigned a unique id, else false</dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="setId-java.lang.Object-"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>setId</h4> |
|
<pre>public void setId(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> id)</pre> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code><a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html#setId-java.lang.Object-">setId</a></code> in interface <code><a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html" title="interface in org.janusgraph.graphdb.internal">InternalElement</a></code></dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="isInvisible--"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>isInvisible</h4> |
|
<pre>public boolean isInvisible()</pre> |
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html#isInvisible--">InternalElement</a></code></span></div> |
|
<div class="block">Whether this element is invisible and should only be returned to queries that explicitly ask for invisible elements.</div> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code><a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html#isInvisible--">isInvisible</a></code> in interface <code><a href="../../../../org/janusgraph/graphdb/internal/InternalElement.html" title="interface in org.janusgraph.graphdb.internal">InternalElement</a></code></dd> |
|
<dt><span class="returnLabel">Returns:</span></dt> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="isNew--"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>isNew</h4> |
|
<pre>public boolean isNew()</pre> |
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#isNew--">JanusGraphElement</a></code></span></div> |
|
<div class="block">Checks whether this entity has been newly created in the current transaction.</div> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#isNew--">isNew</a></code> in interface <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a></code></dd> |
|
<dt><span class="returnLabel">Returns:</span></dt> |
|
<dd>True, if entity has been newly created, else false.</dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="isLoaded--"> |
|
|
|
</a> |
|
<ul class="blockList"> |
|
<li class="blockList"> |
|
<h4>isLoaded</h4> |
|
<pre>public boolean isLoaded()</pre> |
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#isLoaded--">JanusGraphElement</a></code></span></div> |
|
<div class="block">Checks whether this entity has been loaded into the current transaction and not yet modified.</div> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#isLoaded--">isLoaded</a></code> in interface <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a></code></dd> |
|
<dt><span class="returnLabel">Returns:</span></dt> |
|
<dd>True, has been loaded and not modified, else false.</dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
<a name="isRemoved--"> |
|
|
|
</a> |
|
<ul class="blockListLast"> |
|
<li class="blockList"> |
|
<h4>isRemoved</h4> |
|
<pre>public boolean isRemoved()</pre> |
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#isRemoved--">JanusGraphElement</a></code></span></div> |
|
<div class="block">Checks whether this entity has been deleted into the current transaction.</div> |
|
<dl> |
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
|
<dd><code><a href="../../../../org/janusgraph/core/JanusGraphElement.html#isRemoved--">isRemoved</a></code> in interface <code><a href="../../../../org/janusgraph/core/JanusGraphElement.html" title="interface in org.janusgraph.core">JanusGraphElement</a></code></dd> |
|
<dt><span class="returnLabel">Returns:</span></dt> |
|
<dd>True, has been deleted, else false.</dd> |
|
</dl> |
|
</li> |
|
</ul> |
|
</li> |
|
</ul> |
|
</li> |
|
</ul> |
|
</div> |
|
</div> |
|
|
|
|
|
<div class="bottomNav"><a name="navbar.bottom"> |
|
|
|
</a> |
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
|
<a name="navbar.bottom.firstrow"> |
|
|
|
</a> |
|
<ul class="navList" title="Navigation"> |
|
<li><a href="../../../../overview-summary.html">Overview</a></li> |
|
<li><a href="package-summary.html">Package</a></li> |
|
<li class="navBarCell1Rev">Class</li> |
|
<li><a href="class-use/AbstractElement.html">Use</a></li> |
|
<li><a href="package-tree.html">Tree</a></li> |
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
|
<li><a href="../../../../index-all.html">Index</a></li> |
|
<li><a href="../../../../help-doc.html">Help</a></li> |
|
</ul> |
|
</div> |
|
<div class="subNav"> |
|
<ul class="navList"> |
|
<li>Prev Class</li> |
|
<li><a href="../../../../org/janusgraph/graphdb/internal/ElementCategory.html" title="enum in org.janusgraph.graphdb.internal"><span class="typeNameLink">Next Class</span></a></li> |
|
</ul> |
|
<ul class="navList"> |
|
<li><a href="../../../../index.html?org/janusgraph/graphdb/internal/AbstractElement.html" target="_top">Frames</a></li> |
|
<li><a href="AbstractElement.html" target="_top">No Frames</a></li> |
|
</ul> |
|
<ul class="navList" id="allclasses_navbar_bottom"> |
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
|
</ul> |
|
<div> |
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
</div> |
|
<div> |
|
<ul class="subNavList"> |
|
<li>Summary: </li> |
|
<li>Nested | </li> |
|
<li>Field | </li> |
|
<li><a href="#constructor.summary">Constr</a> | </li> |
|
<li><a href="#method.summary">Method</a></li> |
|
</ul> |
|
<ul class="subNavList"> |
|
<li>Detail: </li> |
|
<li>Field | </li> |
|
<li><a href="#constructor.detail">Constr</a> | </li> |
|
<li><a href="#method.detail">Method</a></li> |
|
</ul> |
|
</div> |
|
<a name="skip.navbar.bottom"> |
|
|
|
</a></div> |
|
|
|
<p class="legalCopy"><small>Copyright © 2012–2023. All rights reserved.</small></p> |
|
</body> |
|
</html> |
|
|