Package org.umlg.sqlg.structure.topology
Class Partition
java.lang.Object
org.umlg.sqlg.structure.topology.Partition
- All Implemented Interfaces:
TopologyInf
- Author:
- Pieter Martin Date: 2018/01/13
-
Constructor Summary
ConstructorDescriptionPartition
(SqlgGraph sqlgGraph, AbstractLabel abstractLabel, String name, Integer modulus, Integer remainder, PartitionType partitionType, String partitionExpression) Partition
(SqlgGraph sqlgGraph, AbstractLabel abstractLabel, String name, String from, String to, PartitionType partitionType, String partitionExpression) Partition
(SqlgGraph sqlgGraph, AbstractLabel abstractLabel, String name, String in, PartitionType partitionType, String partitionExpression) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createIndexOnLeafPartitions
(Index index) void
ensureHashPartitionExists
(String name, Integer modulus, Integer remainder) void
ensureListPartitionExists
(String name, String in) ensureListPartitionWithSubPartitionExists
(String name, String in, PartitionType partitionType, String partitionExpression) void
ensureRangePartitionExists
(String name, String from, String to) ensureRangePartitionWithSubPartitionExists
(String name, String from, String to, PartitionType partitionType, String partitionExpression) getFrom()
getIn()
getName()
getPartition
(String name) getTo()
boolean
void
remove
(boolean preserveData) remove the topology itemOptional<com.fasterxml.jackson.databind.node.ObjectNode>
Optional<com.fasterxml.jackson.databind.node.ObjectNode>
toJson()
toString()
Optional<com.fasterxml.jackson.databind.node.ObjectNode>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.umlg.sqlg.structure.TopologyInf
isUncommitted, remove, rename, updatePropertyDefinition
-
Constructor Details
-
Partition
public Partition(SqlgGraph sqlgGraph, AbstractLabel abstractLabel, String name, String from, String to, PartitionType partitionType, String partitionExpression) -
Partition
public Partition(SqlgGraph sqlgGraph, AbstractLabel abstractLabel, String name, String in, PartitionType partitionType, String partitionExpression) -
Partition
public Partition(SqlgGraph sqlgGraph, AbstractLabel abstractLabel, String name, Integer modulus, Integer remainder, PartitionType partitionType, String partitionExpression)
-
-
Method Details
-
getFrom
-
getTo
-
getIn
-
getModulus
-
getRemainder
-
getPartitionType
-
getPartitionExpression
-
isCommitted
public boolean isCommitted()- Specified by:
isCommitted
in interfaceTopologyInf
-
getName
- Specified by:
getName
in interfaceTopologyInf
-
getSchemaName
-
getAbstractLabelName
-
getAbstractLabel
-
getParentPartition
-
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
-
toUncommittedPartitionNotifyJson
-
toCommittedPartitionNotifyJson
-
toJson
-
toString
-
ensureRangePartitionExists
-
ensureListPartitionExists
-
ensureHashPartitionExists
-
ensureRangePartitionWithSubPartitionExists
-
ensureListPartitionWithSubPartitionExists
public Partition ensureListPartitionWithSubPartitionExists(String name, String in, PartitionType partitionType, String partitionExpression) -
getPartitions
-
getPartition
-
createIndexOnLeafPartitions
-