Class PropertygraphData
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<PropertygraphData.Builder,
PropertygraphData>
A Gremlin or openCypher change record.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertygraphData.Builder
builder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
from()
If this is an edge (type =e
), the ID of the correspondingfrom
vertex or source node.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
id()
The ID of the Gremlin or openCypher element.final String
key()
The property name.static Class
<? extends PropertygraphData.Builder> final String
to()
If this is an edge (type =e
), the ID of the correspondingto
vertex or target node.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
type()
The type of this Gremlin or openCypher element.final Document
value()
This is a JSON object that contains a value field for the value itself, and a datatype field for the JSON data type of that value:Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID of the Gremlin or openCypher element.
- Returns:
- The ID of the Gremlin or openCypher element.
-
type
The type of this Gremlin or openCypher element. Must be one of:
-
v1
- Vertex label for Gremlin, or node label for openCypher. -
vp
- Vertex properties for Gremlin, or node properties for openCypher. -
e
- Edge and edge label for Gremlin, or relationship and relationship type for openCypher. -
ep
- Edge properties for Gremlin, or relationship properties for openCypher.
- Returns:
- The type of this Gremlin or openCypher element. Must be one of:
-
v1
- Vertex label for Gremlin, or node label for openCypher. -
vp
- Vertex properties for Gremlin, or node properties for openCypher. -
e
- Edge and edge label for Gremlin, or relationship and relationship type for openCypher. -
ep
- Edge properties for Gremlin, or relationship properties for openCypher.
-
-
-
key
The property name. For element labels, this is
label
.- Returns:
- The property name. For element labels, this is
label
.
-
value
This is a JSON object that contains a value field for the value itself, and a datatype field for the JSON data type of that value:
- Returns:
- This is a JSON object that contains a value field for the value itself, and a datatype field for the JSON data type of that value:
-
from
If this is an edge (type =
e
), the ID of the correspondingfrom
vertex or source node.- Returns:
- If this is an edge (type =
e
), the ID of the correspondingfrom
vertex or source node.
-
to
If this is an edge (type =
e
), the ID of the correspondingto
vertex or target node.- Returns:
- If this is an edge (type =
e
), the ID of the correspondingto
vertex or target node.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<PropertygraphData.Builder,
PropertygraphData> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-