Class MakeBlob

    • Constructor Detail

      • MakeBlob

        public MakeBlob()
      • MakeBlob

        public MakeBlob​(boolean produceImmediate)
    • Method Detail

      • 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.
      • 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)