Package org.umlg.sqlg.structure.topology
Class Schema
java.lang.Object
org.umlg.sqlg.structure.topology.Schema
- All Implemented Interfaces:
TopologyInf
Date: 2016/09/04
Time: 8:49 AM
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToOutEdgeLabels
(String schemaName, String edgeLabelName, EdgeLabel edgeLabel) void
createTempTable
(String tableName, Map<String, PropertyDefinition> columns) ensureEdgeLabelExist
(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns) ensureEdgeLabelExist
(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers) ensureEdgeLabelExist
(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, int shardCount, String distributionColumn, AbstractLabel colocate) ensureEdgeLabelExist
(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, int shardCount, String distributionColumn, AbstractLabel colocate, EdgeDefinition edgeDefinition) ensureEdgeLabelExist
(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, EdgeDefinition edgeDefinition) ensureEdgeLabelExist
(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, EdgeDefinition edgeDefinition) ensurePartitionedEdgeLabelExist
(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression) ensurePartitionedEdgeLabelExist
(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression, boolean isForeignKeyPartition, EdgeDefinition edgeDefinition) ensurePartitionedEdgeLabelExistOnInOrOutVertexLabel
(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, VertexLabel foreignKeyVertexLabel) ensurePartitionedVertexLabelExist
(String label, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression) ensurePartitionedVertexLabelExist
(String label, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression, boolean addPrimaryKeyConstraint) ensureVertexLabelExist
(String label) ensureVertexLabelExist
(String label, Map<String, PropertyDefinition> columns) ensureVertexLabelExist
(String label, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers) boolean
getEdgeLabel
(String edgeLabelName) getName()
getTemporaryTable
(String tableName) getVertexLabel
(String vertexLabelName) int
hashCode()
boolean
boolean
void
remove
(boolean preserveData) remove the topology itemcom.fasterxml.jackson.databind.JsonNode
toJson()
toString()
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, rename, updatePropertyDefinition
-
Field Details
-
uncommittedRemovedVertexLabels
-
SQLG_SCHEMA
- See Also:
-
-
Method Details
-
isCommitted
public boolean isCommitted()- Specified by:
isCommitted
in interfaceTopologyInf
-
isForeignSchema
public boolean isForeignSchema() -
ensureVertexLabelExist
-
ensureVertexLabelExist
-
ensureVertexLabelExist
public VertexLabel ensureVertexLabelExist(String label, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers) -
ensurePartitionedVertexLabelExist
public VertexLabel ensurePartitionedVertexLabelExist(String label, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression) -
ensurePartitionedVertexLabelExist
public VertexLabel ensurePartitionedVertexLabelExist(String label, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression, boolean addPrimaryKeyConstraint) -
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, EdgeDefinition edgeDefinition) -
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns) -
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers) -
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, EdgeDefinition edgeDefinition) -
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, int shardCount, String distributionColumn, AbstractLabel colocate) -
ensureEdgeLabelExist
public EdgeLabel ensureEdgeLabelExist(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, int shardCount, String distributionColumn, AbstractLabel colocate, EdgeDefinition edgeDefinition) -
ensurePartitionedEdgeLabelExistOnInOrOutVertexLabel
public EdgeLabel ensurePartitionedEdgeLabelExistOnInOrOutVertexLabel(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, VertexLabel foreignKeyVertexLabel) -
ensurePartitionedEdgeLabelExist
public EdgeLabel ensurePartitionedEdgeLabelExist(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression) -
ensurePartitionedEdgeLabelExist
public EdgeLabel ensurePartitionedEdgeLabelExist(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyDefinition> columns, org.apache.commons.collections4.set.ListOrderedSet<String> identifiers, PartitionType partitionType, String partitionExpression, boolean isForeignKeyPartition, EdgeDefinition edgeDefinition) -
getName
- Specified by:
getName
in interfaceTopologyInf
-
getVertexLabel
-
getEdgeLabels
-
getEdgeLabel
-
getVertexLabels
-
addToOutEdgeLabels
-
toJson
public com.fasterxml.jackson.databind.JsonNode toJson() -
hashCode
public int hashCode() -
equals
-
toString
-
remove
public void remove(boolean preserveData) Description copied from interface:TopologyInf
remove the topology item- Specified by:
remove
in interfaceTopologyInf
- Parameters:
preserveData
- if true we don't delete at the SQL level
-
createTempTable
-
getTemporaryTable
-