public interface ElementMutation<T extends Element> extends ElementLocation
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEY |
| Modifier and Type | Method and Description |
|---|---|
ElementMutation<T> |
addExtendedData(String tableName,
String row,
String column,
String key,
Value value,
Long timestamp,
Visibility visibility)
Adds an extended data cell to the element.
|
ElementMutation<T> |
addExtendedData(String tableName,
String row,
String column,
String key,
Value value,
Visibility visibility)
Adds an extended data cell to the element.
|
ElementMutation<T> |
addExtendedData(String tableName,
String row,
String column,
Value value,
Long timestamp,
Visibility visibility)
Adds an extended data cell to the element.
|
ElementMutation<T> |
addExtendedData(String tableName,
String row,
String column,
Value value,
Visibility visibility)
Adds an extended data cell to the element.
|
ElementMutation<T> |
addPropertyValue(String key,
String name,
Value value,
Metadata metadata,
Long timestamp,
Visibility visibility)
Adds or updates a property.
|
ElementMutation<T> |
addPropertyValue(String key,
String name,
Value value,
Metadata metadata,
Visibility visibility)
Adds or updates a property.
|
ElementMutation<T> |
addPropertyValue(String key,
String name,
Value value,
Visibility visibility)
Adds or updates a property.
|
ElementMutation<T> |
deleteExtendedData(String tableName,
String row)
Deletes an extended data row from an element.
|
ElementMutation<T> |
deleteExtendedData(String tableName,
String row,
String column,
String key,
Visibility visibility)
Deletes an extended data cell from an element.
|
ElementMutation<T> |
deleteExtendedData(String tableName,
String row,
String column,
Visibility visibility)
Deletes an extended data cell from an element.
|
ElementMutation<T> |
deleteExtendedDataTable(String tableName)
Deletes an extended data table and its rows from an element.
|
ElementMutation<T> |
deleteProperty(Property property)
Deletes a property.
|
ElementMutation<T> |
deleteProperty(String key,
String name,
Visibility visibility)
Deletes a property.
|
ElementMutation<T> |
deleteProperty(String name,
Visibility visibility)
Deletes the default property with that name.
|
ElementType |
getElementType()
Get the type of the element
|
Iterable<ExtendedDataMutation> |
getExtendedData()
Gets the extended data mutations.
|
Iterable<ExtendedDataDeleteMutation> |
getExtendedDataDeletes()
Gets the extended data columns currently being deleted in this mutation
|
IndexHint |
getIndexHint()
Gets the currently set index hint.
|
Iterable<Property> |
getProperties()
Gets the properties currently in this mutation.
|
Iterable<PropertyDeleteMutation> |
getPropertyDeletes()
Gets the properties currently being deleted in this mutation.
|
Iterable<PropertySoftDeleteMutation> |
getPropertySoftDeletes()
Gets the properties currently being soft deleted in this mutation.
|
boolean |
hasChanges()
true, if this mutation has any changes.
|
T |
save(Authorizations authorizations)
saves the properties to the graph.
|
ElementMutation<T> |
setIndexHint(IndexHint indexHint)
Sets the index hint of this element.
|
ElementMutation<T> |
setProperty(String name,
Value value,
Metadata metadata,
Visibility visibility)
Sets or updates a property value.
|
ElementMutation<T> |
setProperty(String name,
Value value,
Visibility visibility)
Sets or updates a property value.
|
ElementMutation<T> |
softDeleteProperty(Property property)
Soft deletes a property.
|
ElementMutation<T> |
softDeleteProperty(String key,
String name,
Visibility visibility)
Soft deletes a property.
|
ElementMutation<T> |
softDeleteProperty(String name,
Visibility visibility)
Soft deletes the default property with that name.
|
edge, getVisibility, vertexstatic final String DEFAULT_KEY
T save(Authorizations authorizations)
ElementMutation<T> setProperty(String name, Value value, Visibility visibility)
name - The name of the property.value - The value of the property.visibility - The visibility to give this property.ElementMutation<T> setProperty(String name, Value value, Metadata metadata, Visibility visibility)
name - The name of the property.value - The value of the property.metadata - The metadata to assign to this property.visibility - The visibility to give this property.ElementMutation<T> addPropertyValue(String key, String name, Value value, Visibility visibility)
key - The unique key given to the property allowing for multi-valued properties.name - The name of the property.value - The value of the property.visibility - The visibility to give this property.ElementMutation<T> addPropertyValue(String key, String name, Value value, Metadata metadata, Visibility visibility)
key - The unique key given to the property allowing for multi-valued properties.name - The name of the property.value - The value of the property.metadata - The metadata to assign to this property.visibility - The visibility to give this property.ElementMutation<T> addPropertyValue(String key, String name, Value value, Metadata metadata, Long timestamp, Visibility visibility)
key - The unique key given to the property allowing for multi-valued properties.name - The name of the property.value - The value of the property.metadata - The metadata to assign to this property.timestamp - The timestamp of the property.visibility - The visibility to give this property.ElementMutation<T> deleteProperty(Property property)
property - the property to delete.ElementMutation<T> softDeleteProperty(Property property)
property - the property to soft delete.ElementMutation<T> deleteProperty(String name, Visibility visibility)
name - the property name to delete.visibility - the visibility of the property to delete.ElementMutation<T> softDeleteProperty(String name, Visibility visibility)
name - the property name to soft delete.visibility - the visibility of the property to soft delete.ElementMutation<T> deleteProperty(String key, String name, Visibility visibility)
key - the key of the property to delete.name - the name of the property to delete.visibility - the visibility of the property to delete.ElementMutation<T> softDeleteProperty(String key, String name, Visibility visibility)
key - the key of the property to soft delete.name - the name of the property to soft delete.visibility - the visibility of the property to soft delete.Iterable<PropertyDeleteMutation> getPropertyDeletes()
Iterable<PropertySoftDeleteMutation> getPropertySoftDeletes()
Iterable<ExtendedDataMutation> getExtendedData()
Iterable<ExtendedDataDeleteMutation> getExtendedDataDeletes()
ElementMutation<T> setIndexHint(IndexHint indexHint)
IndexHint getIndexHint()
boolean hasChanges()
ElementMutation<T> addExtendedData(String tableName, String row, String column, Value value, Visibility visibility)
tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.value - The cell value.visibility - The visibility of the value.ElementMutation<T> addExtendedData(String tableName, String row, String column, Value value, Long timestamp, Visibility visibility)
tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.value - The cell value.timestamp - The timestamp of the value. null, to automatically generate one.visibility - The visibility of the value.ElementMutation<T> addExtendedData(String tableName, String row, String column, String key, Value value, Visibility visibility)
tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.key - The column multi-value key.value - The cell value.visibility - The visibility of the value.ElementMutation<T> addExtendedData(String tableName, String row, String column, String key, Value value, Long timestamp, Visibility visibility)
tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.key - The column multi-value key.value - The cell value.timestamp - The timestamp of the value. null, to automatically generate one.visibility - The visibility of the value.ElementMutation<T> deleteExtendedData(String tableName, String row, String column, Visibility visibility)
tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.visibility - The visibility of the value.ElementMutation<T> deleteExtendedData(String tableName, String row)
tableName - The extended data table to add the cell to.row - The row to add the cell to.ElementMutation<T> deleteExtendedData(String tableName, String row, String column, String key, Visibility visibility)
tableName - The extended data table to add the cell to.row - The row to add the cell to.column - The column name.key - The column multi-value key.visibility - The visibility of the value.ElementMutation<T> deleteExtendedDataTable(String tableName)
tableName - The extended data table to delete.ElementType getElementType()
ElementIdgetElementType in interface ElementIdCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.