Add toString() method to Segment.java for debugging purposes

This commit is contained in:
Simon Willnauer 2014-08-23 11:17:14 +02:00
parent fdf1998f39
commit 805f042293

View File

@ -157,4 +157,21 @@ public class Segment implements Streamable {
out.writeOptionalString(mergeId);
out.writeLong(memoryInBytes);
}
@Override
public String toString() {
return "Segment{" +
"name='" + name + '\'' +
", generation=" + generation +
", committed=" + committed +
", search=" + search +
", sizeInBytes=" + sizeInBytes +
", docCount=" + docCount +
", delDocCount=" + delDocCount +
", version='" + version + '\'' +
", compound=" + compound +
", mergeId='" + mergeId + '\'' +
", memoryInBytes=" + memoryInBytes +
'}';
}
}