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 TypeMethodDescriptionvoidensureDistributed(int shardCount, PropertyColumn distributionPropertyColumn) ensureEdgeLabelExist(String edgeLabelName, VertexLabel inVertexLabel) Ensures that theEdgeLabelexists.ensureEdgeLabelExist(String edgeLabelName, VertexLabel inVertexLabel, Map<String, PropertyDefinition> properties) Ensures that theEdgeLabelexists.ensureEdgeLabelExist(String edgeLabelName, VertexLabel inVertexLabel, Map<String, PropertyDefinition> properties, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers) Ensures that theEdgeLabelexists.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) voidensurePropertiesExist(Map<String, PropertyDefinition> columns) booleangetOutEdgeLabel(String edgeLabelName) Out EdgeLabels are always in the same schema as the 'this' VertexLabel' schema.inthashCode()voidremove(boolean preserveData) remove the topology itemvoidprotected com.fasterxml.jackson.databind.JsonNodetoJson()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, setPartitionTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.umlg.sqlg.structure.TopologyInf
isUncommitted, remove, updatePropertyDefinition 
- 
Method Details
- 
getSchema
- Specified by:
 getSchemain classAbstractLabel
 - 
getTopology
- Specified by:
 getTopologyin 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 theEdgeLabelexists. It will be created if it does not exists. "this" is the outVertexLabeland 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 theEdgeLabelexists. It will be created if it does not exist. "this" is the outVertexLabeland 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 theEdgeLabelexists. It will be created if it does not exists. "this" is the outVertexLabeland 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:
 equalsin classAbstractLabel
 - 
validateTopology
public List<Topology.TopologyValidationError> validateTopology(DatabaseMetaData metadata) throws SQLException - Specified by:
 validateTopologyin classAbstractLabel- Throws:
 SQLException
 - 
getPrefix
- Specified by:
 getPrefixin classAbstractLabel
 - 
remove
public void remove(boolean preserveData) Description copied from interface:TopologyInfremove the topology item- Parameters:
 preserveData- if true we don't delete at the SQL level
 - 
rename
 
 -