Package | Description |
---|---|
io.cdap.cdap.api |
Interfaces for program and resource specifications, program lifecycle, runtime context and
processors.
|
io.cdap.cdap.api.data |
Defines means of integration between programs and data access.
|
io.cdap.cdap.api.dataset |
Defines APIs for accessing and managing data within CDAP.
|
io.cdap.cdap.api.dataset.lib |
Collection of
Dataset implementations available out-of-the-box
in CDAP. |
io.cdap.cdap.api.dataset.lib.cube |
Implementation of a Cube dataset in CDAP.
|
io.cdap.cdap.api.dataset.table |
Provides access to the system-level table
Dataset s available
within CDAP. |
io.cdap.cdap.api.workflow |
For constructing workflows.
|
io.cdap.cdap.internal.api |
This package contains internal classes for supporting the CDAP API.
|
Modifier and Type | Method and Description |
---|---|
void |
DatasetConfigurer.addDatasetType(Class<? extends Dataset> datasetClass)
Adds a
DatasetModule to be deployed automatically during application deployment, using
Dataset as a base for the DatasetModule . |
void |
DatasetConfigurer.createDataset(String datasetName,
Class<? extends Dataset> datasetClass)
Deploys a Dataset type using the datasetClass parameter (see
DatasetConfigurer.addDatasetType(Class) ),
then adds a Dataset instance, if absent in the CDAP namespace, or if the Dataset instance
already exists, updates the existing instance with empty properties. |
void |
DatasetConfigurer.createDataset(String datasetName,
Class<? extends Dataset> datasetClass,
DatasetProperties props)
Deploys a Dataset type using the datasetClass parameter (see
DatasetConfigurer.addDatasetType(Class) ),
then adds a Dataset instance, if absent in the CDAP namespace, or if the Dataset instance
already exists, updates the existing instance with the new properties. |
Modifier and Type | Method and Description |
---|---|
<T extends Dataset> |
DatasetContext.getDataset(String name)
Get an instance of the specified Dataset.
|
<T extends Dataset> |
DatasetContext.getDataset(String name,
Map<String,String> arguments)
Get an instance of the specified Dataset.
|
<T extends Dataset> |
DatasetContext.getDataset(String namespace,
String name)
Get an instance of the specified Dataset.
|
<T extends Dataset> |
DatasetContext.getDataset(String namespace,
String name,
Map<String,String> arguments)
Get an instance of the specified Dataset.
|
Modifier and Type | Method and Description |
---|---|
void |
DatasetContext.discardDataset(Dataset dataset)
Calling this means that the dataset is not used by the caller any more, and the DatasetContext
must close and discard it as soon as possible.
|
void |
DatasetContext.releaseDataset(Dataset dataset)
Calling this means that the dataset is not used by the caller any more, and the DatasetContext
is free to dismiss or reuse it.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DatasetDefinition<D extends Dataset,A extends DatasetAdmin>
Deprecated.
custom datasets will be removed in a future version
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDatasetDefinition<D extends Dataset,A extends DatasetAdmin>
Basic abstract implementation of
DatasetDefinition . |
class |
CompositeDatasetDefinition<D extends Dataset>
Handy implementation of
DatasetDefinition that implements basic methods by delegating
logic execution to underlying dataset definitions. |
Modifier and Type | Interface and Description |
---|---|
interface |
FileSet
This dataset represents a collection of files on the file system.
|
interface |
ObjectMappedTable<T>
Deprecated.
table based datasets will be removed in a future version
|
interface |
ObjectStore<T>
Deprecated.
table based datasets will be removed in a future version
|
interface |
PartitionedFileSet
Deprecated.
table based datasets will be removed in a future version
|
interface |
TimePartitionedFileSet
Deprecated.
table based datasets will be removed in a future version
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDataset
Handy abstract implementation of
Dataset that acts on a list of underlying datasets and
implements TransactionAware and MeteredDataset interfaces by propagating
corresponded logic to each dataset in a list when possible. |
class |
CounterTimeseriesTable
Deprecated.
table based datasets will be removed in a future version
|
class |
IndexedObjectStore<T>
Deprecated.
table based datasets will be removed in a future version
|
class |
IndexedTable
Deprecated.
table based datasets will be removed in a future version
|
class |
KeyValueTable
Deprecated.
table based datasets will be removed in a future version
|
class |
TimeseriesTable
Deprecated.
table based datasets will be removed in a future version
|
Modifier and Type | Method and Description |
---|---|
protected <T extends Dataset> |
CompositeDatasetDefinition.getDataset(DatasetContext datasetContext,
String name,
DatasetSpecification spec,
Map<String,String> arguments,
ClassLoader classLoader)
Gets a
Dataset instance from the delegates with the given instance name. |
protected <DS extends Dataset,DA extends DatasetAdmin> |
CompositeDatasetDefinition.getDelegate(String name) |
Constructor and Description |
---|
AbstractDataset(String instanceName,
Dataset embedded,
Dataset... otherEmbedded) |
AbstractDataset(String instanceName,
Dataset embedded,
Dataset... otherEmbedded) |
Modifier and Type | Interface and Description |
---|---|
interface |
Cube
Deprecated.
table based datasets will be removed in a future version
|
Modifier and Type | Interface and Description |
---|---|
interface |
Table
Deprecated.
table based datasets will be removed in a future version
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractWorkflow.createLocalDataset(String datasetName,
Class<? extends Dataset> datasetClass)
Adds a local dataset instance with
DatasetProperties.EMPTY to the Workflow . |
protected void |
AbstractWorkflow.createLocalDataset(String datasetName,
Class<? extends Dataset> datasetClass,
DatasetProperties props)
Adds a local dataset instance to the
Workflow . |
void |
WorkflowConfigurer.createLocalDataset(String datasetName,
Class<? extends Dataset> datasetClass,
DatasetProperties props)
Adds a local dataset instance to the
Workflow . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractProgramDatasetConfigurable.addDatasetType(Class<? extends Dataset> datasetClass) |
void |
DefaultDatasetConfigurer.addDatasetType(Class<? extends Dataset> datasetClass) |
protected void |
AbstractProgramDatasetConfigurable.createDataset(String datasetName,
Class<? extends Dataset> datasetClass)
Calls
DatasetConfigurer.createDataset(String, Class, DatasetProperties) , passing empty
properties. |
void |
DefaultDatasetConfigurer.createDataset(String datasetName,
Class<? extends Dataset> datasetClass) |
protected void |
AbstractProgramDatasetConfigurable.createDataset(String datasetName,
Class<? extends Dataset> datasetClass,
DatasetProperties properties)
Calls
DatasetConfigurer.createDataset(String, String, DatasetProperties) , passing the
dataset class and properties. |
void |
DefaultDatasetConfigurer.createDataset(String datasetInstanceName,
Class<? extends Dataset> datasetClass,
DatasetProperties properties) |
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.