public string PrettyPrint(FdbKey.PrettyPrintMode mode)
        {
            var sb     = new StringBuilder();
            int offset = this.Offset;

            if (offset < 1)
            {
                sb.Append(this.OrEqual ? "lLE{" : "lLT{");
            }
            else
            {
                --offset;
                sb.Append(this.OrEqual ? "fGT{" : "fGE{");
            }
            sb.Append(FdbKey.PrettyPrint(Key, mode));
            sb.Append("}");

            if (offset > 0)
            {
                sb.Append(" + ").Append(offset);
            }
            else if (offset < 0)
            {
                sb.Append(" - ").Append(-offset);
            }

            return(sb.ToString());
        }
Пример #2
0
 /// <summary>Returns a printable version of the range</summary>
 public override string ToString()
 {
     return("{" + FdbKey.PrettyPrint(m_begin, FdbKey.PrettyPrintMode.Begin) + ", " + FdbKey.PrettyPrint(m_end, FdbKey.PrettyPrintMode.End) + "}");
 }