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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToOutEdgeLabels(String schemaName, String edgeLabelName, EdgeLabel edgeLabel) voidcreateTempTable(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) booleangetEdgeLabel(String edgeLabelName) getName()getTemporaryTable(String tableName) getVertexLabel(String vertexLabelName) inthashCode()booleanbooleanvoidremove(boolean preserveData) remove the topology itemcom.fasterxml.jackson.databind.JsonNodetoJson()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
isCommittedin 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:
getNamein 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:TopologyInfremove the topology item- Specified by:
removein interfaceTopologyInf- Parameters:
preserveData- if true we don't delete at the SQL level
-
createTempTable
-
getTemporaryTable
-