mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Add toString() method to Segment.java for debugging purposes
This commit is contained in:
parent
fdf1998f39
commit
805f042293
@ -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 +
|
||||
'}';
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user