From d0400a0688f2fe9ce366c99442d8803c8045b905 Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Thu, 12 Apr 2018 15:01:09 -0400 Subject: [PATCH] SegmentWithState: Add toString method. (#5635) The class appears in log messages, and the default toString method isn't very informative. --- .../segment/realtime/appenderator/SegmentWithState.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/src/main/java/io/druid/segment/realtime/appenderator/SegmentWithState.java b/server/src/main/java/io/druid/segment/realtime/appenderator/SegmentWithState.java index 3a89c1593cf..b6fd84fc41d 100644 --- a/server/src/main/java/io/druid/segment/realtime/appenderator/SegmentWithState.java +++ b/server/src/main/java/io/druid/segment/realtime/appenderator/SegmentWithState.java @@ -150,4 +150,13 @@ public class SegmentWithState to ); } + + @Override + public String toString() + { + return "SegmentWithState{" + + "segmentIdentifier=" + segmentIdentifier + + ", state=" + state + + '}'; + } }