Class ProtobufSerialization

java.lang.Object
com.yahoo.search.dispatch.rpc.ProtobufSerialization

public class ProtobufSerialization extends Object
  • 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

      public static int getTraceLevelForBackend(Query query)