Class CreateIndex.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.model.CreateIndex.Builder
-
- Enclosing class:
- CreateIndex
public static class CreateIndex.Builder extends java.lang.Object
Builder to implement fluent construction ofCreateIndex
objects.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateIndex.Builder
addColumn(java.lang.String column)
Add the named column to the list of columnsCreateIndex.Builder
addColumn(java.lang.String column, OrderedColumnDef.Direction direction, OrderedColumnDef.NullOrder nullOrder)
Add the named column to the index, with specific order and null value collation rulesCreateIndex
build()
Build an instance ofCreateIndex
using the current state of this Builder.CreateIndex.Builder
setDistributionColumnName(java.lang.String distributionColumnName)
Setter for distributionColumnNameCreateIndex.Builder
setDistributionType(DistributionType dt)
Setter for distributionTypeCreateIndex.Builder
setIndexName(java.lang.String indexName)
CreateIndex.Builder
setSchemaName(java.lang.String schemaName)
CreateIndex.Builder
setTableName(java.lang.String tableName)
CreateIndex.Builder
setUnique(boolean unique)
CreateIndex.Builder
setVersion(int version)
CreateIndex.Builder
setVersionTrackingName(java.lang.String name)
-
-
-
Method Detail
-
setSchemaName
public CreateIndex.Builder setSchemaName(java.lang.String schemaName)
- Parameters:
schemaName
- the schemaName to set
-
setTableName
public CreateIndex.Builder setTableName(java.lang.String tableName)
- Parameters:
tableName
- the tableName to set
-
setIndexName
public CreateIndex.Builder setIndexName(java.lang.String indexName)
- Parameters:
indexName
- the indexName to set
-
setVersionTrackingName
public CreateIndex.Builder setVersionTrackingName(java.lang.String name)
-
setDistributionType
public CreateIndex.Builder setDistributionType(DistributionType dt)
Setter for distributionType- Parameters:
dt
-- Returns:
-
setDistributionColumnName
public CreateIndex.Builder setDistributionColumnName(java.lang.String distributionColumnName)
Setter for distributionColumnName- Parameters:
distributionColumnName
-- Returns:
-
setVersion
public CreateIndex.Builder setVersion(int version)
- Parameters:
version
- the version to set
-
setUnique
public CreateIndex.Builder setUnique(boolean unique)
- Parameters:
unique
- the unique to set
-
addColumn
public CreateIndex.Builder addColumn(java.lang.String column)
Add the named column to the list of columns- Parameters:
column
-- Returns:
-
addColumn
public CreateIndex.Builder addColumn(java.lang.String column, OrderedColumnDef.Direction direction, OrderedColumnDef.NullOrder nullOrder)
Add the named column to the index, with specific order and null value collation rules- Parameters:
column
-direction
-nullOrder
-- Returns:
-
build
public CreateIndex build()
Build an instance ofCreateIndex
using the current state of this Builder.- Returns:
-
-