public static class Tablespace.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Tablespace.Builder |
allocatedSizeKB(BigDecimal allocatedSizeKB)
The allocated tablespace size in KB.
|
Tablespace.Builder |
allocationType(Tablespace.AllocationType allocationType)
The type of extent allocation in effect for the tablespace.
|
Tablespace.Builder |
blockSizeBytes(BigDecimal blockSizeBytes)
The tablespace block size.
|
Tablespace |
build() |
Tablespace.Builder |
compressFor(Tablespace.CompressFor compressFor)
The operation type for which default compression is enabled.
|
Tablespace.Builder |
copy(Tablespace model) |
Tablespace.Builder |
datafiles(List<Datafile> datafiles)
A list of the data files associated with the tablespace.
|
Tablespace.Builder |
defaultCellMemory(String defaultCellMemory)
This specifies the default value for the CELLMEMORY attribute that tables created in the
tablespace will inherit unless the behavior is overridden explicitly.
|
Tablespace.Builder |
defaultIndexCompression(Tablespace.DefaultIndexCompression defaultIndexCompression)
Indicates whether default index compression is enabled or disabled.
|
Tablespace.Builder |
defaultInMemory(Tablespace.DefaultInMemory defaultInMemory)
Indicates whether the In-Memory Column Store (IM column store) is by default enabled or
disabled for tables in the tablespace.
|
Tablespace.Builder |
defaultInMemoryCompression(Tablespace.DefaultInMemoryCompression defaultInMemoryCompression)
Indicates the default compression level for the IM column store for the tablespace.
|
Tablespace.Builder |
defaultInMemoryDistribute(Tablespace.DefaultInMemoryDistribute defaultInMemoryDistribute)
Indicates how the IM column store is distributed by default for the tablespace in an
Oracle Real Application Clusters (Oracle RAC) environment.
|
Tablespace.Builder |
defaultInMemoryDuplicate(Tablespace.DefaultInMemoryDuplicate defaultInMemoryDuplicate)
Indicates the duplicate setting for the IM column store in an Oracle RAC environment.
|
Tablespace.Builder |
defaultInMemoryPriority(Tablespace.DefaultInMemoryPriority defaultInMemoryPriority)
Indicates the default priority for In-Memory Column Store (IM column store) population
for the tablespace.
|
Tablespace.Builder |
defaultInMemoryService(Tablespace.DefaultInMemoryService defaultInMemoryService)
Indicates how the IM column store is populated on various instances by default for the
tablespace.
|
Tablespace.Builder |
defaultInMemoryServiceName(String defaultInMemoryServiceName)
Indicates the service name for the service on which the IM column store should be
populated by default for the tablespace.
|
Tablespace.Builder |
defaultTableCompression(Tablespace.DefaultTableCompression defaultTableCompression)
Indicates whether default table compression is enabled or disabled.
|
Tablespace.Builder |
extentManagement(Tablespace.ExtentManagement extentManagement)
Indicates whether the extents in the tablespace are Locally managed or Dictionary
managed.
|
Tablespace.Builder |
freeSpaceKB(BigDecimal freeSpaceKB)
The free space available in the tablespace in KB.
|
Tablespace.Builder |
indexCompressFor(Tablespace.IndexCompressFor indexCompressFor)
The operation type for which default index compression is enabled.
|
Tablespace.Builder |
isBigfile(Boolean isBigfile)
Indicates whether the tablespace is a Bigfile tablespace or a Smallfile tablespace.
|
Tablespace.Builder |
isChunkTablespace(Boolean isChunkTablespace)
Indicates whether this is a chunk tablespace.
|
Tablespace.Builder |
isDefault(Boolean isDefault)
Indicates whether this is the default tablespace.
|
Tablespace.Builder |
isEncrypted(Boolean isEncrypted)
Indicates whether the tablespace is encrypted.
|
Tablespace.Builder |
isForceLogging(Boolean isForceLogging)
Indicates whether the tablespace is under Force Logging mode.
|
Tablespace.Builder |
isPluggedIn(Boolean isPluggedIn)
Indicates whether the tablespace is plugged in.
|
Tablespace.Builder |
logging(Tablespace.Logging logging)
The default logging attribute.
|
Tablespace.Builder |
lostWriteProtect(Tablespace.LostWriteProtect lostWriteProtect)
The lost write protection setting for the tablespace.
|
Tablespace.Builder |
maxSizeKB(BigDecimal maxSizeKB)
The maximum tablespace size in KB.
|
Tablespace.Builder |
name(String name)
The name of the tablespace.
|
Tablespace.Builder |
predicateEvaluation(Tablespace.PredicateEvaluation predicateEvaluation)
Indicates whether predicates are evaluated by Host or by Storage.
|
Tablespace.Builder |
retention(Tablespace.Retention retention)
Indicates whether undo retention guarantee is enabled for the tablespace.
|
Tablespace.Builder |
segmentSpaceManagement(Tablespace.SegmentSpaceManagement segmentSpaceManagement)
Indicates whether the free and used segment space in the tablespace is managed using free
lists (MANUAL) or bitmaps (AUTO).
|
Tablespace.Builder |
shared(Tablespace.Shared shared)
Indicates whether the tablespace is for shared tablespace, or for local temporary
tablespace for leaf (read-only) instances, or for local temporary tablespace for all
instance types.
|
Tablespace.Builder |
status(Tablespace.Status status)
The status of the tablespace.
|
Tablespace.Builder |
tempGroup(String tempGroup)
The temporary tablespace group.
|
Tablespace.Builder |
type(Tablespace.Type type)
The type of tablespace.
|
Tablespace.Builder |
usedPercentAllocated(Double usedPercentAllocated)
The percentage of used space out of the total allocated space in the tablespace.
|
Tablespace.Builder |
usedPercentAvailable(Double usedPercentAvailable)
The percentage of used space out of the maximum available space in the tablespace.
|
Tablespace.Builder |
usedSpaceKB(BigDecimal usedSpaceKB)
The total space used by the tablespace in KB.
|
Tablespace.Builder |
userSizeKB(BigDecimal userSizeKB)
The size of the tablespace available for user data in KB.
|
public Tablespace.Builder name(String name)
The name of the tablespace.
name
- the value to setpublic Tablespace.Builder type(Tablespace.Type type)
The type of tablespace.
type
- the value to setpublic Tablespace.Builder status(Tablespace.Status status)
The status of the tablespace.
status
- the value to setpublic Tablespace.Builder blockSizeBytes(BigDecimal blockSizeBytes)
The tablespace block size.
blockSizeBytes
- the value to setpublic Tablespace.Builder logging(Tablespace.Logging logging)
The default logging attribute.
logging
- the value to setpublic Tablespace.Builder isForceLogging(Boolean isForceLogging)
Indicates whether the tablespace is under Force Logging mode.
isForceLogging
- the value to setpublic Tablespace.Builder extentManagement(Tablespace.ExtentManagement extentManagement)
Indicates whether the extents in the tablespace are Locally managed or Dictionary managed.
extentManagement
- the value to setpublic Tablespace.Builder allocationType(Tablespace.AllocationType allocationType)
The type of extent allocation in effect for the tablespace.
allocationType
- the value to setpublic Tablespace.Builder isPluggedIn(Boolean isPluggedIn)
Indicates whether the tablespace is plugged in.
isPluggedIn
- the value to setpublic Tablespace.Builder segmentSpaceManagement(Tablespace.SegmentSpaceManagement segmentSpaceManagement)
Indicates whether the free and used segment space in the tablespace is managed using free lists (MANUAL) or bitmaps (AUTO).
segmentSpaceManagement
- the value to setpublic Tablespace.Builder defaultTableCompression(Tablespace.DefaultTableCompression defaultTableCompression)
Indicates whether default table compression is enabled or disabled.
defaultTableCompression
- the value to setpublic Tablespace.Builder retention(Tablespace.Retention retention)
Indicates whether undo retention guarantee is enabled for the tablespace.
retention
- the value to setpublic Tablespace.Builder isBigfile(Boolean isBigfile)
Indicates whether the tablespace is a Bigfile tablespace or a Smallfile tablespace.
isBigfile
- the value to setpublic Tablespace.Builder predicateEvaluation(Tablespace.PredicateEvaluation predicateEvaluation)
Indicates whether predicates are evaluated by Host or by Storage.
predicateEvaluation
- the value to setpublic Tablespace.Builder isEncrypted(Boolean isEncrypted)
Indicates whether the tablespace is encrypted.
isEncrypted
- the value to setpublic Tablespace.Builder compressFor(Tablespace.CompressFor compressFor)
The operation type for which default compression is enabled.
compressFor
- the value to setpublic Tablespace.Builder defaultInMemory(Tablespace.DefaultInMemory defaultInMemory)
Indicates whether the In-Memory Column Store (IM column store) is by default enabled or disabled for tables in the tablespace.
defaultInMemory
- the value to setpublic Tablespace.Builder defaultInMemoryPriority(Tablespace.DefaultInMemoryPriority defaultInMemoryPriority)
Indicates the default priority for In-Memory Column Store (IM column store) population for the tablespace.
defaultInMemoryPriority
- the value to setpublic Tablespace.Builder defaultInMemoryDistribute(Tablespace.DefaultInMemoryDistribute defaultInMemoryDistribute)
Indicates how the IM column store is distributed by default for the tablespace in an Oracle Real Application Clusters (Oracle RAC) environment.
defaultInMemoryDistribute
- the value to setpublic Tablespace.Builder defaultInMemoryCompression(Tablespace.DefaultInMemoryCompression defaultInMemoryCompression)
Indicates the default compression level for the IM column store for the tablespace.
defaultInMemoryCompression
- the value to setpublic Tablespace.Builder defaultInMemoryDuplicate(Tablespace.DefaultInMemoryDuplicate defaultInMemoryDuplicate)
Indicates the duplicate setting for the IM column store in an Oracle RAC environment.
defaultInMemoryDuplicate
- the value to setpublic Tablespace.Builder shared(Tablespace.Shared shared)
Indicates whether the tablespace is for shared tablespace, or for local temporary tablespace for leaf (read-only) instances, or for local temporary tablespace for all instance types.
shared
- the value to setpublic Tablespace.Builder defaultIndexCompression(Tablespace.DefaultIndexCompression defaultIndexCompression)
Indicates whether default index compression is enabled or disabled.
defaultIndexCompression
- the value to setpublic Tablespace.Builder indexCompressFor(Tablespace.IndexCompressFor indexCompressFor)
The operation type for which default index compression is enabled.
indexCompressFor
- the value to setpublic Tablespace.Builder defaultCellMemory(String defaultCellMemory)
This specifies the default value for the CELLMEMORY attribute that tables created in the tablespace will inherit unless the behavior is overridden explicitly. This column is intended for use with Oracle Exadata.
defaultCellMemory
- the value to setpublic Tablespace.Builder defaultInMemoryService(Tablespace.DefaultInMemoryService defaultInMemoryService)
Indicates how the IM column store is populated on various instances by default for the tablespace.
defaultInMemoryService
- the value to setpublic Tablespace.Builder defaultInMemoryServiceName(String defaultInMemoryServiceName)
Indicates the service name for the service on which the IM column store should be populated by default for the tablespace. This column has a value only when the corresponding DEF_INMEMORY_SERVICE is USER_DEFINED. In all other cases, this column is null.
defaultInMemoryServiceName
- the value to setpublic Tablespace.Builder lostWriteProtect(Tablespace.LostWriteProtect lostWriteProtect)
The lost write protection setting for the tablespace.
lostWriteProtect
- the value to setpublic Tablespace.Builder isChunkTablespace(Boolean isChunkTablespace)
Indicates whether this is a chunk tablespace.
isChunkTablespace
- the value to setpublic Tablespace.Builder tempGroup(String tempGroup)
The temporary tablespace group.
tempGroup
- the value to setpublic Tablespace.Builder maxSizeKB(BigDecimal maxSizeKB)
The maximum tablespace size in KB. If the tablespace contains any data files with Autoextend enabled, then this column displays the amount of underlying free storage space for the tablespace. For example, if the current tablespace size is 1 GB, the combined maximum size of all its data files is 32 GB, and its underlying storage (for example, ASM or file system storage) has 20 GB of free space, then this column will have a value of approximately 20 GB. If the tablespace contains only data files with autoextend disabled, then this column displays the allocated space for the entire tablespace, that is, the combined size of all data files in the tablespace.
maxSizeKB
- the value to setpublic Tablespace.Builder allocatedSizeKB(BigDecimal allocatedSizeKB)
The allocated tablespace size in KB.
allocatedSizeKB
- the value to setpublic Tablespace.Builder userSizeKB(BigDecimal userSizeKB)
The size of the tablespace available for user data in KB. The difference between tablespace size and user data size is used for storing metadata.
userSizeKB
- the value to setpublic Tablespace.Builder freeSpaceKB(BigDecimal freeSpaceKB)
The free space available in the tablespace in KB.
freeSpaceKB
- the value to setpublic Tablespace.Builder usedSpaceKB(BigDecimal usedSpaceKB)
The total space used by the tablespace in KB.
usedSpaceKB
- the value to setpublic Tablespace.Builder usedPercentAvailable(Double usedPercentAvailable)
The percentage of used space out of the maximum available space in the tablespace.
usedPercentAvailable
- the value to setpublic Tablespace.Builder usedPercentAllocated(Double usedPercentAllocated)
The percentage of used space out of the total allocated space in the tablespace.
usedPercentAllocated
- the value to setpublic Tablespace.Builder isDefault(Boolean isDefault)
Indicates whether this is the default tablespace.
isDefault
- the value to setpublic Tablespace.Builder datafiles(List<Datafile> datafiles)
A list of the data files associated with the tablespace.
datafiles
- the value to setpublic Tablespace build()
public Tablespace.Builder copy(Tablespace model)
Copyright © 2016–2024. All rights reserved.