mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
add toString to CompressedString to show when logging it
This commit is contained in:
parent
3b30930460
commit
800b7f39bd
@ -87,4 +87,12 @@ public class CompressedString implements Streamable {
|
||||
@Override public int hashCode() {
|
||||
return bytes != null ? Arrays.hashCode(bytes) : 0;
|
||||
}
|
||||
|
||||
@Override public String toString() {
|
||||
try {
|
||||
return string();
|
||||
} catch (IOException e) {
|
||||
return "_na_";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user