All Implemented Interfaces:
Computation

public class MakeBlob extends AbstractTransientBlobComputation
Since:
10.3
  • Field Details

  • Constructor Details

    • MakeBlob

      public MakeBlob()
    • MakeBlob

      public MakeBlob(boolean produceImmediate)
  • Method Details

    • init

      public void init(ComputationContext context)
      Description copied from interface: Computation
      Called when the framework has registered the computation successfully. Gives users a first opportunity to schedule timer callbacks and produce records. This method can be called multiple times.
      Specified by:
      init in interface Computation
      Overrides:
      init in class AbstractTransientBlobComputation
      Parameters:
      context - The computation context object provided by the system.
    • processTimer

      public void processTimer(ComputationContext context, String key, long timestamp)
      Description copied from interface: Computation
      Process a timer callback previously set via ComputationContext.setTimer(String, long).
      Specified by:
      processTimer in interface Computation
      Overrides:
      processTimer in class AbstractComputation
      Parameters:
      context - The computation context object provided by the system.
      key - The name of the timer.
      timestamp - The timestamp (in ms) for which the callback was scheduled.
    • processRecord

      public void processRecord(ComputationContext context, String documentIdsStreamName, Record record)
      Description copied from interface: Computation
      Process an incoming record on one of the computation's input streams.
      Parameters:
      context - The computation context object provided by the system.
      documentIdsStreamName - Name of the input stream that provides the record.
      record - The record.
    • getTotal

      protected Long getTotal(String commandId)
    • appendToFile

      protected Path appendToFile(String commandId, byte[] content)
    • appendHeaderFooterToFile

      protected void appendHeaderFooterToFile(Path filePath, String commandId, byte[] header, byte[] footer)
    • saveInTransientStore

      protected String saveInTransientStore(String commandId, String storeName)
    • getOutputStream

      protected String getOutputStream(String commandId)
    • finishBlob

      protected void finishBlob(ComputationContext context, String commandId)