public interface DseTableGraphOptions<NextT>
Modifier and Type | Method and Description |
---|---|
NextT |
withEdgeLabel(CqlIdentifier edgeLabelId,
DseGraphEdgeSide from,
DseGraphEdgeSide to)
Adds an edge label to this table.
|
default NextT |
withEdgeLabel(DseGraphEdgeSide from,
DseGraphEdgeSide to)
Adds an anonymous edge label to this table.
|
default NextT |
withEdgeLabel(String edgeLabelName,
DseGraphEdgeSide from,
DseGraphEdgeSide to)
|
default NextT |
withVertexLabel()
Adds an anonymous vertex label to this table.
|
NextT |
withVertexLabel(CqlIdentifier vertexLabelId)
Adds a vertex label to this table.
|
default NextT |
withVertexLabel(String vertexLabelName)
Shortcut for
withVertexLabel(CqlIdentifier.fromCql(vertexLabel)) . |
@NonNull NextT withVertexLabel(@Nullable CqlIdentifier vertexLabelId)
@NonNull default NextT withVertexLabel(@NonNull String vertexLabelName)
withVertexLabel(CqlIdentifier.fromCql(vertexLabel))
.@NonNull default NextT withVertexLabel()
This is a shortcut for withVertexLabel(null)
.
@NonNull NextT withEdgeLabel(@Nullable CqlIdentifier edgeLabelId, @NonNull DseGraphEdgeSide from, @NonNull DseGraphEdgeSide to)
Use DseGraphEdgeSide.table(CqlIdentifier)
to build the definitions of both sides,
for example:
withEdgeLabel("contrib",
table("person")
.withPartitionKey("contributor"),
table("soft")
.withPartitionKey("company_name"),
.withPartitionKey("software_name"),
.withClusteringColumn("software_version"))
@NonNull default NextT withEdgeLabel(@NonNull String edgeLabelName, @NonNull DseGraphEdgeSide from, @NonNull DseGraphEdgeSide to)
@NonNull default NextT withEdgeLabel(@NonNull DseGraphEdgeSide from, @NonNull DseGraphEdgeSide to)
This is a shortcut for withEdgeLabel(null, from, to)
.
Copyright © 2017–2022. All rights reserved.