Class Partition

java.lang.Object
org.umlg.sqlg.structure.topology.Partition
All Implemented Interfaces:
TopologyInf

public class Partition extends Object implements TopologyInf
Author:
Pieter Martin Date: 2018/01/13
  • Constructor Details

  • Method Details

    • getFrom

      public String getFrom()
    • getTo

      public String getTo()
    • getIn

      public String getIn()
    • getModulus

      public Integer getModulus()
    • getRemainder

      public Integer getRemainder()
    • getPartitionType

      public PartitionType getPartitionType()
    • getPartitionExpression

      public String getPartitionExpression()
    • isCommitted

      public boolean isCommitted()
      Specified by:
      isCommitted in interface TopologyInf
    • getName

      public String getName()
      Specified by:
      getName in interface TopologyInf
    • getSchemaName

      public String getSchemaName()
    • getAbstractLabelName

      public String getAbstractLabelName()
    • getAbstractLabel

      public AbstractLabel getAbstractLabel()
    • getParentPartition

      public Partition getParentPartition()
    • remove

      public void remove(boolean preserveData)
      Description copied from interface: TopologyInf
      remove the topology item
      Specified by:
      remove in interface TopologyInf
      Parameters:
      preserveData - if true we don't delete at the SQL level
    • toUncommittedPartitionNotifyJson

      public Optional<com.fasterxml.jackson.databind.node.ObjectNode> toUncommittedPartitionNotifyJson()
    • toCommittedPartitionNotifyJson

      public Optional<com.fasterxml.jackson.databind.node.ObjectNode> toCommittedPartitionNotifyJson()
    • toJson

      public Optional<com.fasterxml.jackson.databind.node.ObjectNode> toJson()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • ensureRangePartitionExists

      public void ensureRangePartitionExists(String name, String from, String to)
    • ensureListPartitionExists

      public void ensureListPartitionExists(String name, String in)
    • ensureHashPartitionExists

      public void ensureHashPartitionExists(String name, Integer modulus, Integer remainder)
    • ensureRangePartitionWithSubPartitionExists

      public Partition ensureRangePartitionWithSubPartitionExists(String name, String from, String to, PartitionType partitionType, String partitionExpression)
    • ensureListPartitionWithSubPartitionExists

      public Partition ensureListPartitionWithSubPartitionExists(String name, String in, PartitionType partitionType, String partitionExpression)
    • getPartitions

      public Map<String,Partition> getPartitions()
    • getPartition

      public Optional<Partition> getPartition(String name)
    • createIndexOnLeafPartitions

      public void createIndexOnLeafPartitions(Index index)