MCPcopy Create free account
hub / github.com/apache/storm / thriftSerialize

Method thriftSerialize

storm-client/src/jvm/org/apache/storm/utils/Utils.java:694–706  ·  view source on GitHub ↗
(TBase t)

Source from the content-addressed store, hash-verified

692 }
693
694 public static byte[] thriftSerialize(TBase t) {
695 try {
696 TSerializer ser = threadSer.get();
697 if (ser == null) {
698 ser = new TSerializer();
699 threadSer.set(ser);
700 }
701 return ser.serialize(t);
702 } catch (TException e) {
703 LOG.error("Failed to serialize to thrift: ", e);
704 throw new RuntimeException(e);
705 }
706 }
707
708 public static <T> T thriftDeserialize(Class<T> c, byte[] b) {
709 try {

Callers 9

thriftSerializeMethod · 0.95
encodeMethod · 0.95
testLaunchMethod · 0.95
createBlobMethod · 0.95
setBlobMetaMethod · 0.95
createBlobMethod · 0.95
writeMetadataMethod · 0.95

Calls 3

getMethod · 0.65
setMethod · 0.65
serializeMethod · 0.65

Tested by 3

testLaunchMethod · 0.76