Ejemplo n.º 1
0
 public bool IsRegionOverlap(RegionInfo other)
 {
     return(BinaryComparer.Equals(Namespace, other.Namespace) &&
            BinaryComparer.Equals(Table, other.Table) &&
            (other.StopKey?.Any() != true || BinaryComparer.Compare(StartKey, other.StopKey) < 0) &&
            (StopKey?.Any() != true || BinaryComparer.Compare(StopKey, other.StartKey) > 0));
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return($"RegionInfo->Name: {Name.ToUtf8String()}, ID: {ID}, Namespace: {Namespace.ToUtf8String()}, Table: {Table.ToUtf8String()}, StartKey:{StartKey.ToUtf8String()}, StopKey: {StopKey.ToUtf8String()}");
 }
Ejemplo n.º 3
0
 private void StopKey_GotFocus(object sender, RoutedEventArgs e)
 {
     StopKey.SelectAll();
     clicking = false;
 }