Class DrRegionInfo<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>

java.lang.Object
io.datarouter.client.hbase.cluster.DrRegionInfo<PK>
All Implemented Interfaces:
Comparable<DrRegionInfo<?>>

public class DrRegionInfo<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
extends Object
implements Comparable<DrRegionInfo<?>>
  • Constructor Details

    • DrRegionInfo

      public DrRegionInfo​(Integer regionNum, String tableName, org.apache.hadoop.hbase.HRegionInfo regionInfo, org.apache.hadoop.hbase.ServerName serverName, io.datarouter.storage.node.type.physical.PhysicalNode<?,​?,​?> nodeOrAdapter, org.apache.hadoop.hbase.RegionLoad load, HBaseCompactionInfo compactionInfo, io.datarouter.storage.serialize.fieldcache.EntityFieldInfo<?,​?> entityFieldInfo)
  • Method Details

    • getConsistentHashServerName

      public org.apache.hadoop.hbase.ServerName getConsistentHashServerName()
    • isNotOnAnyServer

      public boolean isNotOnAnyServer()
    • isOnCorrectServer

      public boolean isOnCorrectServer()
    • getHBaseServerName

      public org.apache.hadoop.hbase.ServerName getHBaseServerName()
    • getBalancerDestinationHBaseServerName

      public org.apache.hadoop.hbase.ServerName getBalancerDestinationHBaseServerName()
    • getServerName

      public String getServerName()
    • getDisplayServerName

      public String getDisplayServerName()
    • getConsistentHashDisplayServerName

      public String getConsistentHashDisplayServerName()
    • getNumKeyValuesWithCompactionPercent

      public String getNumKeyValuesWithCompactionPercent()
    • getRegionNum

      public Integer getRegionNum()
    • getTableName

      public String getTableName()
    • getName

      public String getName()
    • getStartRowKey

      public String getStartRowKey()
    • getStartKeyString

      public Object getStartKeyString()
    • getStartKeyTyped

      public io.datarouter.httpclient.response.Conditional<Optional<io.datarouter.model.field.FieldSet<?>>> getStartKeyTyped()
    • getEndRowKey

      public String getEndRowKey()
    • getEndKeyString

      public Object getEndKeyString()
    • getEndKeyTyped

      public io.datarouter.httpclient.response.Conditional<Optional<io.datarouter.model.field.FieldSet<?>>> getEndKeyTyped()
    • getPartition

      public Integer getPartition()
    • getRegion

      public org.apache.hadoop.hbase.HRegionInfo getRegion()
    • getLoad

      public org.apache.hadoop.hbase.RegionLoad getLoad()
    • getCompactionScheduler

      public DrhCompactionScheduler<PK> getCompactionScheduler()
    • setBalancerDestinationServer

      public void setBalancerDestinationServer​(org.apache.hadoop.hbase.ServerName balancerDestinationServer)
    • toString

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

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo​(DrRegionInfo<?> other)
      Specified by:
      compareTo in interface Comparable<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>