Skip to content

Commit

Permalink
Fixed BinaryMap toString.
Browse files Browse the repository at this point in the history
  • Loading branch information
nandakumar131 committed Dec 23, 2023
1 parent 320d169 commit 73fb4f9
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import io.fury.memory.MemoryUtils;
import io.fury.util.Platform;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Map;
import org.apache.arrow.vector.types.pojo.Field;

/**
Expand Down Expand Up @@ -135,12 +133,10 @@ public void writeTo(ByteBuffer buffer) {

@Override
public String toString() {
final Map<String, Object> elements = new HashMap<>();
elements.put("keys", keys);
elements.put("values", values);
elements.put("sizeInBytes", sizeInBytes);
final StringBuilder builder = new StringBuilder();
builder.append(this.getClass().getSimpleName()).append(elements.toString());
return builder.toString();
return "BinaryMap{"
+ "keys=" + keys
+ ", values=" + values
+ ", sizeInBytes=" + sizeInBytes
+ '}';
}
}

0 comments on commit 73fb4f9

Please sign in to comment.