public class EdgeInfoEdge extends ElementBase implements Edge
IN_OR_OUT_VERTEX_ID_PROPERTY_NAME, IN_VERTEX_ID_PROPERTY_NAME, LABEL_PROPERTY_NAME, OUT_VERTEX_ID_PROPERTY_NAMEID_PROPERTY_NAME| Constructor and Description |
|---|
EdgeInfoEdge(Graph graph,
String sourceVertexId,
EdgeInfo edgeInfo,
FetchHints fetchHints,
Authorizations authorizations) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteProperty(String key,
String name,
Visibility visibility,
Authorizations authorizations)
Permanently deletes a property given it's key and name from the element.
|
boolean |
equals(Object obj) |
Authorizations |
getAuthorizations()
Gets the authorizations used to get this element.
|
QueryableIterable<ExtendedDataRow> |
getExtendedData(String tableName)
Gets all the rows from an extended data table.
|
com.google.common.collect.ImmutableSet<String> |
getExtendedDataTableNames()
Gets the list of extended data table names.
|
FetchHints |
getFetchHints()
Fetch hints used when fetching this element.
|
Graph |
getGraph()
Gets the graph that this element belongs to.
|
Iterable<Visibility> |
getHiddenVisibilities()
Gets the list of hidden visibilities
|
String |
getId()
id of the element.
|
String |
getLabel()
The edge label.
|
String |
getOtherVertexId(String myVertexId)
Given a vertexId that represents one side of a relationship, get me the id of the other side.
|
Iterable<Property> |
getProperties()
an Iterable of all the properties on this element that you have access to based on the authorizations
used to retrieve the element.
|
long |
getTimestamp()
The timestamp of when this element was updated.
|
String |
getVertexId(Direction direction)
Get the attach vertex id on either side of the edge.
|
Visibility |
getVisibility()
the visibility of the element.
|
int |
hashCode() |
void |
markPropertyHidden(Property property,
Long timestamp,
Visibility visibility,
Authorizations authorizations)
Marks a property as hidden for a given visibility.
|
void |
markPropertyVisible(Property property,
Long timestamp,
Visibility visibility,
Authorizations authorizations)
Marks a property as visible for a given visibility, effectively undoing markPropertyHidden.
|
ExistingEdgeMutation |
prepareMutation()
Prepares a mutation to allow changing multiple property values at the same time.
|
void |
softDeleteProperty(String key,
String name,
Visibility visibility,
Authorizations authorizations)
Soft deletes a property given it's key and name from the element for a given visibility.
|
String |
toString() |
getEdgeLabelProperty, getIdProperty, getInOrOutVertexIdProperty, getInVertexIdProperty, getOutVertexIdProperty, getProperties, getProperties, getProperty, getProperty, internalGetPropertiesclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOtherVertex, getOtherVertex, getVertex, getVertex, getVertices, getVerticesaddPropertyValue, addPropertyValue, compareTo, deleteProperties, deleteProperty, deleteProperty, getHistoricalPropertyValues, getHistoricalPropertyValues, getHistoricalPropertyValues, getHistoricalPropertyValues, isHidden, markPropertyHidden, markPropertyHidden, markPropertyHidden, markPropertyVisible, markPropertyVisible, markPropertyVisible, setProperty, setProperty, softDeleteProperties, softDeletePropertygetProperties, getProperties, getProperty, getProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuespublic EdgeInfoEdge(Graph graph, String sourceVertexId, EdgeInfo edgeInfo, FetchHints fetchHints, Authorizations authorizations)
public String getVertexId(Direction direction)
EdgegetVertexId in interface Edgedirection - The side of the edge to get the vertex id from (IN or OUT).public String getOtherVertexId(String myVertexId)
EdgegetOtherVertexId in interface Edgepublic ExistingEdgeMutation prepareMutation()
EdgeprepareMutation in interface EdgeprepareMutation in interface Elementpublic String getId()
ElementgetId in interface ElementgetId in interface VertexiumObjectpublic Iterable<Property> getProperties()
VertexiumObjectgetProperties in interface VertexiumObjectpublic Visibility getVisibility()
ElementgetVisibility in interface Elementpublic long getTimestamp()
ElementgetTimestamp in interface Elementpublic void deleteProperty(String key, String name, Visibility visibility, Authorizations authorizations)
ElementdeleteProperty in interface Elementkey - The property key.name - The property name.visibility - The property visibility.public void softDeleteProperty(String key, String name, Visibility visibility, Authorizations authorizations)
ElementsoftDeleteProperty in interface Elementkey - The property key.name - The property name.visibility - The visibility string of the property to soft delete.public Graph getGraph()
Elementpublic Authorizations getAuthorizations()
ElementgetAuthorizations in interface Elementpublic void markPropertyHidden(Property property, Long timestamp, Visibility visibility, Authorizations authorizations)
ElementmarkPropertyHidden in interface Elementproperty - The property.timestamp - The timestamp.visibility - The visibility string under which this property is hidden.
This visibility can be a superset of the property visibility to mark
it as hidden for only a subset of authorizations.authorizations - The authorizations used.public void markPropertyVisible(Property property, Long timestamp, Visibility visibility, Authorizations authorizations)
ElementmarkPropertyVisible in interface Elementproperty - The property.timestamp - The timestamp.visibility - The visibility string under which this property is now visible.authorizations - The authorizations used.public Iterable<Visibility> getHiddenVisibilities()
ElementgetHiddenVisibilities in interface Elementpublic com.google.common.collect.ImmutableSet<String> getExtendedDataTableNames()
ElementgetExtendedDataTableNames in interface Elementpublic QueryableIterable<ExtendedDataRow> getExtendedData(String tableName)
ElementgetExtendedData in interface ElementtableName - The name of the table to get rows from.public FetchHints getFetchHints()
ElementgetFetchHints in interface ElementCopyright © 2014–2018. All rights reserved.