V
- type of the return value from the call(DatasetContext)
.@FunctionalInterface public interface TxCallable<V>
DatasetContext
to programs which may be used to get
access to and use datasets.Modifier and Type | Method and Description |
---|---|
V |
call(DatasetContext context)
Provides a
DatasetContext to get instances of Dataset s. |
V call(DatasetContext context) throws Exception
DatasetContext
to get instances of Dataset
s.
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 fromException
Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.