Class CompressService

java.lang.Object
com.yahoo.search.dispatch.rpc.CompressService
All Implemented Interfaces:
CompressPayload

public class CompressService extends Object implements CompressPayload
Implement interface to compress/decompress request/response
Author:
baldersheim
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.yahoo.processing.request.CompoundName
    The compression method which will be used with rpc dispatch.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.yahoo.compress.Compressor.Compression
    compress(Query query, byte[] payload)
     
    byte[]
    decompress(com.yahoo.search.dispatch.rpc.Client.ProtobufResponse response)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • dispatchCompression

      public static final com.yahoo.processing.request.CompoundName dispatchCompression
      The compression method which will be used with rpc dispatch. "lz4" (default) and "none" is supported.
  • Constructor Details

    • CompressService

      public CompressService()
  • Method Details

    • compress

      public com.yahoo.compress.Compressor.Compression compress(Query query, byte[] payload)
      Specified by:
      compress in interface CompressPayload
    • decompress

      public byte[] decompress(com.yahoo.search.dispatch.rpc.Client.ProtobufResponse response)
      Specified by:
      decompress in interface CompressPayload