Class OptimizedSetImpl

All Implemented Interfaces:
KeyedOperation, Operation, VBucketAware

public class OptimizedSetImpl extends MultiKeyOperationImpl
Optimized Set operation for folding a bunch of sets together.
  • Field Details

  • Constructor Details

    • OptimizedSetImpl

      public OptimizedSetImpl(CASOperation firstStore)
      Construct an optimized get starting with the given get operation.
  • Method Details

    • addOperation

      public void addOperation(CASOperation op)
    • size

      public int size()
    • bytes

      public int bytes()
    • initialize

      public void initialize()
      Description copied from interface: Operation
      Initialize this operation. This is used to prepare output byte buffers and stuff.
      Specified by:
      initialize in interface Operation
      Specified by:
      initialize in class BaseOperationImpl
    • cmdMap

      private static byte cmdMap(StoreType t)
    • finishedPayload

      protected void finishedPayload(byte[] pl) throws IOException
      Overrides:
      finishedPayload in class OperationImpl
      Throws:
      IOException
    • opaqueIsValid

      protected boolean opaqueIsValid()
      Description copied from class: OperationImpl
      Validate an opaque value from the header. This may be overridden from a subclass where the opaque isn't expected to always be the same as the request opaque.
      Overrides:
      opaqueIsValid in class OperationImpl