Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.vertexium;
import org.vertexium.mutation.ExistingElementMutation;
/**
* An element on the graph. This can be either a vertex or edge.
*
* Elements also contain properties. These properties are unique given their key, name, and visibility.
* For example a property with key "key1" and name "age" could have to values, one with visibility "a" and one
* with visibility "b".
*/
public interface Element {
/**
* Meta property name used for operations such as sorting
*/
String ID_PROPERTY_NAME = "__ID__";
/**
* id of the element.
*/
String getId();
/**
* the visibility of the element.
*/
Visibility getVisibility();
/**
* The timestamp of when this element was updated.
*/
long getTimestamp();
/**
* an Iterable of all the properties on this element that you have access to based on the authorizations
* used to retrieve the element.
*/
Iterable getProperties();
/**
* Gets a property by key and name.
*
* @param key the key of the property.
* @param name the name of the property.
* @return The property if found. null, if not found.
*/
Property getProperty(String key, String name);
/**
* Gets a property by key, name, and visibility.
*
* @param key the key of the property.
* @param name the name of the property.
* @param visibility The visibility of the property to get.
* @return The property if found. null, if not found.
*/
Property getProperty(String key, String name, Visibility visibility);
/**
* Gets all property values from all timestamps in descending timestamp order.
*/
Iterable getHistoricalPropertyValues(Authorizations authorizations);
/**
* Gets all property values from the given range of timestamps in descending timestamp order.
*/
Iterable getHistoricalPropertyValues(final Long startTime, final Long endTime, Authorizations authorizations);
/**
* Gets property values from all timestamps in descending timestamp order.
*
* @param key the key of the property.
* @param name the name of the property.
* @param visibility The visibility of the property to get.
*/
Iterable getHistoricalPropertyValues(String key, String name, Visibility visibility, Authorizations authorizations);
/**
* Gets property values from the given range of timestamps in descending timestamp order.
*
* @param key the key of the property.
* @param name the name of the property.
* @param visibility The visibility of the property to get.
*/
Iterable getHistoricalPropertyValues(String key, String name, Visibility visibility, final Long startTime, final Long endTime, Authorizations authorizations);
/**
* Gets a property by name, and visibility.
*
* @param name the name of the property.
* @param visibility The visibility of the property to get.
* @return The property if found. null, if not found.
*/
Property getProperty(String name, Visibility visibility);
/**
* Gets a property by name. This assumes a single valued property. If multiple property values exists this will only return the first one.
*
* @param name the name of the property.
* @return The property if found. null, if not found.
*/
Property getProperty(String name);
/**
* an Iterable of all the properties with the given name on this element that you have access to based on the authorizations
* used to retrieve the element.
*
* @param name The name of the property to retrieve
*/
Iterable getProperties(String name);
/**
* an Iterable of all the properties with the given name and key on this element that you have access to based on the authorizations
* used to retrieve the element.
*
* @param key The property key
* @param name The name of the property to retrieve
*/
Iterable getProperties(String key, String name);
/**
* an Iterable of all the property values with the given name on this element that you have access to based on the authorizations
* used to retrieve the element.
*
* @param name The name of the property to retrieve
*/
Iterable