Modifier and Type | Field and Description |
---|---|
static int |
NO_TTL
Indicates that a Table has no (that is, unlimited) time-to-live (TTL).
|
Modifier and Type | Method and Description |
---|---|
static void |
createTable(ApplicationConfigurer configurer,
String datasetName)
Adds
Table data set to be created at application deploy if not exists. |
static void |
createTable(ApplicationConfigurer configurer,
String datasetName,
ConflictDetection level)
Adds
Table data set to be created at application deploy if not exists. |
static void |
createTable(ApplicationConfigurer configurer,
String datasetName,
ConflictDetection level,
int ttl)
Adds
Table data set to be created at application deploy if not exists. |
static void |
createTable(ApplicationConfigurer configurer,
String datasetName,
ConflictDetection level,
int ttl,
DatasetProperties props)
Adds
Table data set to be created at application deploy if not exists. |
static void |
createTable(ApplicationConfigurer configurer,
String datasetName,
int ttl)
Adds
Table data set to be created at application deploy if not exists. |
static DatasetProperties |
tableProperties(ConflictDetection level,
int ttl,
DatasetProperties props)
|
public static final int NO_TTL
public static void createTable(ApplicationConfigurer configurer, String datasetName)
Table
data set to be created at application deploy if not exists.configurer
- application configurerdatasetName
- data set namepublic static void createTable(ApplicationConfigurer configurer, String datasetName, int ttl)
Table
data set to be created at application deploy if not exists.configurer
- application configurerdatasetName
- data set namettl
- time to live for data written into a table, in seconds. NO_TTL
means unlimitedpublic static void createTable(ApplicationConfigurer configurer, String datasetName, ConflictDetection level)
Table
data set to be created at application deploy if not exists.configurer
- application configurerdatasetName
- data set namelevel
- level on which to detect conflicts in changes made by different transactionspublic static void createTable(ApplicationConfigurer configurer, String datasetName, ConflictDetection level, int ttl)
Table
data set to be created at application deploy if not exists.configurer
- application configurerdatasetName
- data set namelevel
- level on which to detect conflicts in changes made by different transactionsttl
- time to live for data written into a table, in seconds. NO_TTL
means unlimitedpublic static void createTable(ApplicationConfigurer configurer, String datasetName, ConflictDetection level, int ttl, DatasetProperties props)
Table
data set to be created at application deploy if not exists.configurer
- application configurerdatasetName
- data set namelevel
- level on which to detect conflicts in changes made by different transactionsttl
- time to live for data written into a table, in seconds. NO_TTL
means unlimitedprops
- any additional data set propertiespublic static DatasetProperties tableProperties(ConflictDetection level, int ttl, DatasetProperties props)
level
- level on which to detect conflicts in changes made by different transactionsttl
- time to live for data written into a table, in seconds. NO_TTL
means unlimitedDatasetProperties
for the data setCopyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.