(completed? this)
Returns true if this all of this output's data has been emitted, and it is safe to complete the job. Streaming inputs should always return false.
Returns true if this all of this output's data has been emitted, and it is safe to complete the job. Streaming inputs should always return false.
(synced? this epoch)
Returns a bool for whether it is safe to advance to the next epoch. All reads from the previous epoch must be completely emitted / discarded before it is safe to return true.
Returns a bool for whether it is safe to advance to the next epoch. All reads from the previous epoch must be completely emitted / discarded before it is safe to return true.
(checkpoint this)
Pure function that returns the full checkpoint state, that allows the plugin state to be recovered. This checkpoint value will be passed in to recover when restarting the task and recovering the plugin's state.
Pure function that returns the full checkpoint state, that allows the plugin state to be recovered. This checkpoint value will be passed in to recover when restarting the task and recovering the plugin's state.
(checkpointed! this epoch)
checkpointed! is called whenever an epoch has been fully snapshotted over the job's entire directed acyclic graph. At this point it is safe to do any un-recoverable housekeeping for previous epoch's data.
checkpointed! is called whenever an epoch has been fully snapshotted over the job's entire directed acyclic graph. At this point it is safe to do any un-recoverable housekeeping for previous epoch's data.
(recover! this replica-version checkpoint)
Recover the state of the plugin from the supplied checkpoint. Returns a new reader.
Recover the state of the plugin from the supplied checkpoint. Returns a new reader.
(poll! this event timeout-ms)
Polls the plugin for a new segment, or returns nil if none are currently available. Plugin should attempt to limit poll time to timeout-ms.
Polls the plugin for a new segment, or returns nil if none are currently available. Plugin should attempt to limit poll time to timeout-ms.
(prepare-batch this event replica messenger)
Called prior to write batch. Primarily used as an initial preparation step before write-batch is called repeatedly. Must return true or false depending on whether it is safe to advance to the next state.
Called prior to write batch. Primarily used as an initial preparation step before write-batch is called repeatedly. Must return true or false depending on whether it is safe to advance to the next state.
(write-batch this event replica messenger)
Write the prepared batch to the storage medium. Must return true or false depending on whether the batch has been fully written. This is so that non-blocking functions can be used.
Write the prepared batch to the storage medium. Must return true or false depending on whether the batch has been fully written. This is so that non-blocking functions can be used.
(start this event)
Initialize the plugin, generally assoc'ing any initial state.
Initialize the plugin, generally assoc'ing any initial state.
(stop this event)
Shutdown the input and close any resources that needs to be closed. This can also be done using lifecycles.
Shutdown the input and close any resources that needs to be closed. This can also be done using lifecycles.
(watermark this)
Returns the latest high water mark timestamp for the input source
Returns the latest high water mark timestamp for the input source
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close