Add StorageFormat#toString method
@@ -21,6 +21,7 @@ import javax.annotation.concurrent.Immutable;
import java.util.Objects;
+import static com.google.common.base.MoreObjects.toStringHelper;
import static java.util.Objects.requireNonNull;
@Immutable
@@ -123,4 +124,14 @@ public class StorageFormat
{
return Objects.hash(serDe, inputFormat, outputFormat);
}
+
+ @Override
+ public String toString()
+ {
+ return toStringHelper(this)
+ .add("serDe", serDe)
+ .add("inputFormat", inputFormat)
+ .add("outputFormat", outputFormat)
+ .toString();
+ }
}
