wu-sheng commented on a change in pull request #8685:
URL: https://github.com/apache/skywalking/pull/8685#discussion_r827599350



##########
File path: 
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/storage/type/HashMapConverter.java
##########
@@ -34,6 +40,25 @@
         public Object get(final String fieldName) {
             return source.get(fieldName);
         }
+
+        @Override
+        public <T, R> R getWith(final String fieldName, final Function<T, R> 
typeDecoder) {
+            final T value = (T) source.get(fieldName);
+            return typeDecoder.apply(value);
+        }
+
+        /**
+         * Default Base64Decoder supplier
+         */
+        public static class Base64Decoder implements Function<String, byte[]> {

Review comment:
       Done.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to