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
ConstructorsConstructorDescriptionPartition(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 TypeMethodDescriptionvoidcreateIndexOnLeafPartitions(Index index) voidensureHashPartitionExists(String name, Integer modulus, Integer remainder) voidensureListPartitionExists(String name, String in) ensureListPartitionWithSubPartitionExists(String name, String in, PartitionType partitionType, String partitionExpression) voidensureRangePartitionExists(String name, String from, String to) ensureRangePartitionWithSubPartitionExists(String name, String from, String to, PartitionType partitionType, String partitionExpression) getFrom()getIn()getName()getPartition(String name) getTo()booleanvoidremove(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, waitMethods 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:
 isCommittedin interfaceTopologyInf
 - 
getName
- Specified by:
 getNamein interfaceTopologyInf
 - 
getSchemaName
 - 
getAbstractLabelName
 - 
getAbstractLabel
 - 
getParentPartition
 - 
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
 - 
toUncommittedPartitionNotifyJson
 - 
toCommittedPartitionNotifyJson
 - 
toJson
 - 
toString
 - 
ensureRangePartitionExists
 - 
ensureListPartitionExists
 - 
ensureHashPartitionExists
 - 
ensureRangePartitionWithSubPartitionExists
 - 
ensureListPartitionWithSubPartitionExists
public Partition ensureListPartitionWithSubPartitionExists(String name, String in, PartitionType partitionType, String partitionExpression)  - 
getPartitions
 - 
getPartition
 - 
createIndexOnLeafPartitions
 
 -