@FunctionalInterface public interface TxRunnable
DatasetContext to programs which may be used to get access to
and use datasets.| Modifier and Type | Method and Description |
|---|---|
void |
run(DatasetContext context)
Provides a
DatasetContext to get instances of Datasets. |
void run(DatasetContext context) throws Exception
DatasetContext to get instances of Datasets.
Operations executed on a dataset within the execution of this method are committed as a single transaction. The transaction is started before this method is invoked and is committed upon successful execution. Exceptions thrown while committing the transaction or thrown by user-code result in a rollback of the transaction.
context - to get datasets fromExceptionCopyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.