public interface TableConfig
Modifier and Type | Method and Description |
---|---|
void |
addCaseInsensitiveFieldName(String caseInsensitiveFieldName)
This method adds a case insensitive field name to the existing list of case insensitive table field names.
|
void |
addFieldRule(FieldRule fieldRule)
This method adds a field rule
FieldRule to the existing list of field rules. |
void |
addFilteredTableAlias(FilteredTableAlias filteredTableAlias)
Add a single filterdTableAlias to the existing list of alias
|
void |
addVariable(Variable variable)
The method is used to add a variable
Variable to the existing list of variables. |
QueryConfig |
getAggregateQuery()
This method returns the aggregate query for this table.
|
List<String> |
getCaseInsensitiveFieldNames()
This method returns the list of case insensitive table field names.
|
String |
getDescription()
The method returns the description of the Liveview table configured with this TableConfig object.
|
List<FieldRule> |
getFieldRules()
This method gets you the list of field rules
FieldRule |
List<FilteredTableAlias> |
getFilteredTableAliases()
This method returns the live list of filtered table alias which you may modify if new filtered tables are to be made based on this table.
|
List<List<String>> |
getIndices()
This method returns the list of Indices for the table.
|
String |
getPersistenceFolder()
This method returns the name of the folder where this table is persisted.
|
String |
getRowDeleteRule()
The rule is a gateway for row to be published.
|
String |
getSchema()
This method returns the string representation for the schema of the table being configured.
|
String |
getShortDescription()
This method gets the short description that is used to describe the table.
|
int |
getSnapshotConcurrency()
Snapshot concurrency specifies the number of extra threads used to service the snapshot portion of queries.
|
int |
getSnapshotParallelism()
Snapshot parallelism determines the number of data regions used in parallel to publish to and scan from tables.
|
String |
getTableDeleteRule()
Deprecated.
The tableDeleteRule specifies a condition when the rows present in this table are to be deleted.
|
List<String> |
getTableDeleteRules() |
String |
getTablename()
This method the name of the table from the Table Configuration
|
List<Variable> |
getVariables()
This method is used to get the list of variables
Variable with this Table Configuration |
boolean |
isPersistenceRestoreDataOnStart()
The method gets the boolean flag which if true, recovers the data is to be restored after the table is restarted.
|
boolean |
isSaveInProject()
The saveInProject flag is responsible for saving the tables to start even after the restart of liveview server.
|
TableConfig |
setAggregateQuery(QueryConfig aggregateQuery)
This method sets the aggregate query for the table.
|
TableConfig |
setDescription(String description)
This method helps in setting the description for the table using this Table Configuration.
|
TableConfig |
setIndices(List<List<String>> indices)
This method is used to set the Indices for the table being configured.
|
TableConfig |
setPersistenceFolder(String persistenceFolder)
This method is used to set the persistent folder where this table will be persisted.
|
TableConfig |
setPersistenceRestoreDataOnStart(boolean persistenceRestoreDataOnStart)
The method sets the boolean flag which if true, recovers the data is to be restored after the table is restarted.
|
TableConfig |
setPrimaryIndex(String... fieldNames)
This method is used to set the Primary Indexes from the list of fields passed to this method.
|
TableConfig |
setRowDeleteRule(String rowDeleteRule)
The rowDeleteRule to set is a gateway for row to be published.
|
TableConfig |
setSaveInProject(boolean saveInProject)
The method is used to set the boolean value for the saveInProject flag, which is responsible for saving the tables to start even after the restart of Liveview server.
|
TableConfig |
setSchema(Schema sbSchema)
This method is used to set the schema for the table being configured.
|
TableConfig |
setSchema(String schema)
This method is used to set the schema for the table being configured.
|
TableConfig |
setShortDescription(String shortDescription)
The shortDescription of the table to be set with Table Configuration.
|
TableConfig |
setSnapshotConcurrency(int snapshotConcurrency)
Snapshot concurrency specifies the number of extra threads used to service the snapshot portion of queries.
|
TableConfig |
setSnapshotParallelism(int snapshotParallelism)
The snapshotParallelism value to set to enable data regions equal to the input value.
|
TableConfig |
setTableDeleteRule(String tableDeleteRule)
Deprecated.
|
TableConfig |
setTableDeleteRules(List<String> tableDeleteRules)
The tableDeleteRule to set specifies a condition when the rows present in this table are to be deleted.
|
TableConfig |
setTablename(String tablename)
This method is used to set the name of the table to this Table Configuration
|
String getTablename()
TableConfig setTablename(String tablename)
table
- nameboolean isSaveInProject()
TableConfig setSaveInProject(boolean saveInProject)
saveInProject
- boolean flagString getDescription()
TableConfig setDescription(String description)
description
- of the tableString getShortDescription()
TableConfig setShortDescription(String shortDescription)
shortDescription
- of the tableString getSchema()
TableConfig setSchema(String schema)
schema
- is the string representation of the table schemaTableConfig setSchema(Schema sbSchema)
sbSchema:
- schema for the tableList<List<String>> getIndices()
TableConfig setIndices(List<List<String>> indices)
indices
- to set.TableConfig setPrimaryIndex(String... fieldNames)
fieldNames
- QueryConfig getAggregateQuery()
TableConfig setAggregateQuery(QueryConfig aggregateQuery)
aggregateQuery
- the aggregateQuery to setString getRowDeleteRule()
TableConfig setRowDeleteRule(String rowDeleteRule)
rowDeleteRule
- is the rowDeleteRule to setString getTableDeleteRule()
TableConfig setTableDeleteRules(List<String> tableDeleteRules)
tableDeleteRules
- is the list of table delete rules to set while configuring the table.TableConfig setTableDeleteRule(String tableDeleteRule)
tableDeleteRule
- : adds the table delete rule to the list to table delete rulesint getSnapshotParallelism()
TableConfig setSnapshotParallelism(int snapshotParallelism)
snapshotParallelism
- the snapshotParallelism to setint getSnapshotConcurrency()
TableConfig setSnapshotConcurrency(int snapshotConcurrency)
snapshotConcurrency
- the snapshotConcurrency to setString getPersistenceFolder()
TableConfig setPersistenceFolder(String persistenceFolder)
persistenceFolder
- the persistenceFolder to setboolean isPersistenceRestoreDataOnStart()
TableConfig setPersistenceRestoreDataOnStart(boolean persistenceRestoreDataOnStart)
persistenceRestoreDataOnStart
- the persistenceRestoreDataOnStart to setList<FilteredTableAlias> getFilteredTableAliases()
void addFilteredTableAlias(FilteredTableAlias filteredTableAlias)
filteredTableAlias
- the alias to addList<Variable> getVariables()
Variable
with this Table Configurationvoid addVariable(Variable variable)
Variable
to the existing list of variables.variable
- the variable to addList<FieldRule> getFieldRules()
FieldRule
void addFieldRule(FieldRule fieldRule)
FieldRule
to the existing list of field rules.fieldRule
- the fieldRule to addList<String> getCaseInsensitiveFieldNames()
void addCaseInsensitiveFieldName(String caseInsensitiveFieldName)
caseInsensitiveFieldName
-