Package org.umlg.sqlg.structure.topology
Class VertexLabel
java.lang.Object
org.umlg.sqlg.structure.topology.AbstractLabel
org.umlg.sqlg.structure.topology.VertexLabel
- All Implemented Interfaces:
TopologyInf
Date: 2016/09/04
Time: 8:49 AM
-
Field Summary
Fields inherited from class org.umlg.sqlg.structure.topology.AbstractLabel
isForeignAbstractLabel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
ensureDistributed
(int shardCount, PropertyColumn distributionPropertyColumn) ensureEdgeLabelExist
(String edgeLabelName, VertexLabel inVertexLabel) Ensures that theEdgeLabel
exists.ensureEdgeLabelExist
(String edgeLabelName, VertexLabel inVertexLabel, Map<String, PropertyDefinition> properties) Ensures that theEdgeLabel
exists.ensureEdgeLabelExist
(String edgeLabelName, VertexLabel inVertexLabel, Map<String, PropertyDefinition> properties, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers) Ensures that theEdgeLabel
exists.ensureEdgeLabelExist
(String edgeLabelName, VertexLabel inVertexLabel, EdgeDefinition edgeDefinition) ensureEdgeLabelExist
(String edgeLabelName, VertexLabel inVertexLabel, EdgeDefinition edgeDefinition, Map<String, PropertyDefinition> properties) ensurePartitionedEdgeLabelExist
(String edgeLabelName, VertexLabel inVertexLabel, Map<String, PropertyDefinition> properties, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression) void
ensurePropertiesExist
(Map<String, PropertyDefinition> columns) boolean
getOutEdgeLabel
(String edgeLabelName) Out EdgeLabels are always in the same schema as the 'this' VertexLabel' schema.int
hashCode()
void
remove
(boolean preserveData) remove the topology itemvoid
protected com.fasterxml.jackson.databind.JsonNode
toJson()
protected Optional<com.fasterxml.jackson.databind.JsonNode>
toString()
validateTopology
(DatabaseMetaData metadata) Methods inherited from class org.umlg.sqlg.structure.topology.AbstractLabel
ensureDistributed, ensureHashPartitionExists, ensureHashPartitionWithSubPartitionExists, ensureIndexExists, ensureListPartitionExists, ensureListPartitionWithSubPartitionExists, ensureRangePartitionExists, ensureRangePartitionWithSubPartitionExists, getDistributionColocate, getDistributionPropertyColumn, getFullName, getIdentifiers, getIndex, getIndexes, getLabel, getName, getPartition, getPartitionExpression, getPartitions, getPartitionType, getProperties, getProperty, getShardCount, hasIDPrimaryKey, internalUpdatePropertyDefinition, isCommitted, isDistributed, isForeign, isHashPartition, isListPartition, isPartition, isRangePartition, removePartition, setPartitionExpression, setPartitionType
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.umlg.sqlg.structure.TopologyInf
isUncommitted, remove, updatePropertyDefinition
-
Method Details
-
getSchema
- Specified by:
getSchema
in classAbstractLabel
-
getTopology
- Specified by:
getTopology
in classAbstractLabel
-
getInEdgeLabels
-
getInEdgeRoles
-
getOutEdgeLabels
-
getOutEdgeRoles
-
getOutEdgeLabel
Out EdgeLabels are always in the same schema as the 'this' VertexLabel' schema. So the edgeLabelName must not contain the schema prefix- Parameters:
edgeLabelName
- The edge label's name- Returns:
- Optionally the EdgeLabel
-
ensureEdgeLabelExist
Ensures that theEdgeLabel
exists. It will be created if it does not exists. "this" is the outVertexLabel
and inVertexLabel is the inVertexLabel This method is equivalent toSchema.ensureEdgeLabelExist(String, VertexLabel, VertexLabel, Map)
- Parameters:
edgeLabelName
- The EdgeLabel's label's name.inVertexLabel
- The edge's in VertexLabel.- Returns:
- The
EdgeLabel
.
-
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel inVertexLabel, EdgeDefinition edgeDefinition) -
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel inVertexLabel, EdgeDefinition edgeDefinition, Map<String, PropertyDefinition> properties) -
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel inVertexLabel, Map<String, PropertyDefinition> properties) Ensures that theEdgeLabel
exists. It will be created if it does not exist. "this" is the outVertexLabel
and inVertexLabel is the inVertexLabel This method is equivalent toSchema.ensureEdgeLabelExist(String, VertexLabel, VertexLabel, Map)
- Parameters:
edgeLabelName
- The EdgeLabel's label's name.inVertexLabel
- The edge's in VertexLabel.properties
- The EdgeLabel's properties- Returns:
- The EdgeLabel
-
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel inVertexLabel, Map<String, PropertyDefinition> properties, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers) Ensures that theEdgeLabel
exists. It will be created if it does not exists. "this" is the outVertexLabel
and inVertexLabel is the inVertexLabel This method is equivalent toSchema.ensureEdgeLabelExist(String, VertexLabel, VertexLabel, Map, ListOrderedSet)
- Parameters:
edgeLabelName
- The EdgeLabel's label's name.inVertexLabel
- The edge's in VertexLabel.properties
- The EdgeLabel's properties.identifiers
- The EdgeLabel's identifiers.- Returns:
- The EdgeLabel
-
ensurePartitionedEdgeLabelExist
public EdgeLabel ensurePartitionedEdgeLabelExist(String edgeLabelName, VertexLabel inVertexLabel, Map<String, PropertyDefinition> properties, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression) -
ensurePropertiesExist
-
ensureDistributed
-
toString
-
toJson
protected com.fasterxml.jackson.databind.JsonNode toJson() -
toNotifyJson
-
hashCode
public int hashCode() -
equals
- Overrides:
equals
in classAbstractLabel
-
validateTopology
public List<Topology.TopologyValidationError> validateTopology(DatabaseMetaData metadata) throws SQLException - Specified by:
validateTopology
in classAbstractLabel
- Throws:
SQLException
-
getPrefix
- Specified by:
getPrefix
in classAbstractLabel
-
remove
public void remove(boolean preserveData) Description copied from interface:TopologyInf
remove the topology item- Parameters:
preserveData
- if true we don't delete at the SQL level
-
rename
-