Beispiel #1
0
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder("SliceRange(");
    boolean first = true;

    sb.append("start:");
    if (this.start == null) {
      sb.append("null");
    } else {
      int __start_size = Math.min(this.start.length, 128);
      for (int i = 0; i < __start_size; i++) {
        if (i != 0) sb.append(" ");
        sb.append(
            Integer.toHexString(this.start[i]).length() > 1
                ? Integer.toHexString(this.start[i])
                    .substring(Integer.toHexString(this.start[i]).length() - 2)
                    .toUpperCase()
                : "0" + Integer.toHexString(this.start[i]).toUpperCase());
      }
      if (this.start.length > 128) sb.append(" ...");
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("finish:");
    if (this.finish == null) {
      sb.append("null");
    } else {
      int __finish_size = Math.min(this.finish.length, 128);
      for (int i = 0; i < __finish_size; i++) {
        if (i != 0) sb.append(" ");
        sb.append(
            Integer.toHexString(this.finish[i]).length() > 1
                ? Integer.toHexString(this.finish[i])
                    .substring(Integer.toHexString(this.finish[i]).length() - 2)
                    .toUpperCase()
                : "0" + Integer.toHexString(this.finish[i]).toUpperCase());
      }
      if (this.finish.length > 128) sb.append(" ...");
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("reversed:");
    sb.append(this.reversed);
    first = false;
    if (!first) sb.append(", ");
    sb.append("count:");
    sb.append(this.count);
    first = false;
    sb.append(")");
    return sb.toString();
  }
Beispiel #2
0
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder("KeyCount(");
    boolean first = true;

    sb.append("key:");
    if (this.key == null) {
      sb.append("null");
    } else {
      int __key_size = Math.min(this.key.length, 128);
      for (int i = 0; i < __key_size; i++) {
        if (i != 0) sb.append(" ");
        sb.append(
            Integer.toHexString(this.key[i]).length() > 1
                ? Integer.toHexString(this.key[i])
                    .substring(Integer.toHexString(this.key[i]).length() - 2)
                    .toUpperCase()
                : "0" + Integer.toHexString(this.key[i]).toUpperCase());
      }
      if (this.key.length > 128) sb.append(" ...");
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("count:");
    sb.append(this.count);
    first = false;
    sb.append(")");
    return sb.toString();
  }
Beispiel #3
0
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder("Deletion(");
    boolean first = true;

    sb.append("timestamp:");
    sb.append(this.timestamp);
    first = false;
    if (isSetSuper_column()) {
      if (!first) sb.append(", ");
      sb.append("super_column:");
      if (this.super_column == null) {
        sb.append("null");
      } else {
        int __super_column_size = Math.min(this.super_column.length, 128);
        for (int i = 0; i < __super_column_size; i++) {
          if (i != 0) sb.append(" ");
          sb.append(
              Integer.toHexString(this.super_column[i]).length() > 1
                  ? Integer.toHexString(this.super_column[i])
                      .substring(Integer.toHexString(this.super_column[i]).length() - 2)
                      .toUpperCase()
                  : "0" + Integer.toHexString(this.super_column[i]).toUpperCase());
        }
        if (this.super_column.length > 128) sb.append(" ...");
      }
      first = false;
    }
    if (isSetPredicate()) {
      if (!first) sb.append(", ");
      sb.append("predicate:");
      if (this.predicate == null) {
        sb.append("null");
      } else {
        sb.append(this.predicate);
      }
      first = false;
    }
    sb.append(")");
    return sb.toString();
  }