Search in sources :

Example 1 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project pinot by linkedin.

the class PinotThirdEyeClientConfig method toString.

@Override
public String toString() {
    ToStringHelper stringHelper = MoreObjects.toStringHelper(PinotThirdEyeClientConfig.class);
    stringHelper.add("brokerUrl", brokerUrl).add("clusterName", clusterName).add("controllerHost", controllerHost).add("controllerPort", controllerPort).add("zookeeperUrl", zookeeperUrl);
    return stringHelper.toString();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 2 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project google-cloud-java by GoogleCloudPlatform.

the class ByteArray method toString.

@Override
public String toString() {
    ToStringHelper toStringHelper = MoreObjects.toStringHelper(this);
    StringBuilder stBuilder = new StringBuilder();
    for (int i = 0; i < Math.min(256, byteString.size()); i++) {
        stBuilder.append(String.format("%02x", byteString.byteAt(i)));
    }
    if (byteString.size() > 256) {
        stBuilder.append("...");
    }
    return toStringHelper.add("bytes", stBuilder.toString()).toString();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 3 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project google-cloud-java by GoogleCloudPlatform.

the class Blob method toString.

@Override
public String toString() {
    ToStringHelper toStringHelper = MoreObjects.toStringHelper(this);
    StringBuilder stBuilder = new StringBuilder();
    for (int i = 0; i < Math.min(256, byteString.size()); i++) {
        stBuilder.append(String.format("%02x", byteString.byteAt(i)));
    }
    if (byteString.size() > 256) {
        stBuilder.append("...");
    }
    return toStringHelper.add("bytes", stBuilder.toString()).toString();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 4 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project atlasdb by palantir.

the class RangeRequest method toString.

@Override
public String toString() {
    ToStringHelper helper = MoreObjects.toStringHelper(getClass()).omitNullValues();
    PtBytes.addIfNotEmpty(helper, "startInclusive", startInclusive);
    PtBytes.addIfNotEmpty(helper, "endExclusive", endExclusive);
    if (columns != null && !columns.isEmpty()) {
        helper.add("columns", FluentIterable.from(columns).filter(Predicates.notNull()).transform(PtBytes.BYTES_TO_HEX_STRING));
    }
    helper.add("batchHint", batchHint);
    helper.add("reverse", reverse);
    return helper.toString();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Example 5 with ToStringHelper

use of com.google.common.base.MoreObjects.ToStringHelper in project openscoring by openscoring.

the class EvaluationResponse method toString.

@Override
public String toString() {
    String message = getMessage();
    if (message != null) {
        return super.toString();
    }
    ToStringHelper stringHelper = MoreObjects.toStringHelper(getClass()).add("id", getId()).add("result", getResult());
    return stringHelper.toString();
}
Also used : ToStringHelper(com.google.common.base.MoreObjects.ToStringHelper)

Aggregations

ToStringHelper (com.google.common.base.MoreObjects.ToStringHelper)23 Logger (com.facebook.airlift.log.Logger)1 FINAL (com.facebook.presto.bytecode.Access.FINAL)1 PRIVATE (com.facebook.presto.bytecode.Access.PRIVATE)1 PUBLIC (com.facebook.presto.bytecode.Access.PUBLIC)1 Access.a (com.facebook.presto.bytecode.Access.a)1 BytecodeBlock (com.facebook.presto.bytecode.BytecodeBlock)1 BytecodeNode (com.facebook.presto.bytecode.BytecodeNode)1 CallSiteBinder (com.facebook.presto.bytecode.CallSiteBinder)1 ClassDefinition (com.facebook.presto.bytecode.ClassDefinition)1 FieldDefinition (com.facebook.presto.bytecode.FieldDefinition)1 MethodDefinition (com.facebook.presto.bytecode.MethodDefinition)1 Parameter (com.facebook.presto.bytecode.Parameter)1 Parameter.arg (com.facebook.presto.bytecode.Parameter.arg)1 ParameterizedType (com.facebook.presto.bytecode.ParameterizedType)1 ParameterizedType.type (com.facebook.presto.bytecode.ParameterizedType.type)1 Scope (com.facebook.presto.bytecode.Scope)1 Variable (com.facebook.presto.bytecode.Variable)1 ForLoop (com.facebook.presto.bytecode.control.ForLoop)1 IfStatement (com.facebook.presto.bytecode.control.IfStatement)1