Package com.yahoo.search.dispatch.rpc
Class ProtobufSerialization
java.lang.Object
com.yahoo.search.dispatch.rpc.ProtobufSerialization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetTraceLevelForBackend(Query query) static booleanReturns true if protobuf query tree serialization is being performed in addition to the old format.static voidsetProtobufAlsoSerialized(boolean value) Sets whether protobuf query tree serialization is being performed in addition to the old format.
-
Constructor Details
-
ProtobufSerialization
public ProtobufSerialization()
-
-
Method Details
-
isProtobufAlsoSerialized
public static boolean isProtobufAlsoSerialized()Returns true if protobuf query tree serialization is being performed in addition to the old format. During the transition period, this allows old format serialization to skip exceptions for features that are only supported in the protobuf format, since the backend will use the protobuf format when both are present. -
setProtobufAlsoSerialized
public static void setProtobufAlsoSerialized(boolean value) Sets whether protobuf query tree serialization is being performed in addition to the old format. This is used during the transition period to suppress exceptions in old format encoding for features only supported in protobuf, since the backend will prefer the protobuf format when both are present. -
getTraceLevelForBackend
-