Class Tablespace


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20201101")
    public final class Tablespace
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The details of a tablespace.
    Note: Objects should always be created or deserialized using the Tablespace.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the Tablespace.Builder, which maintain a set of all explicitly set fields called Tablespace.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getName

        public String getName()
        The name of the tablespace.
        Returns:
        the value
      • getType

        public Tablespace.Type getType()
        The type of tablespace.
        Returns:
        the value
      • getStatus

        public Tablespace.Status getStatus()
        The status of the tablespace.
        Returns:
        the value
      • getBlockSizeBytes

        public BigDecimal getBlockSizeBytes()
        The tablespace block size.
        Returns:
        the value
      • getLogging

        public Tablespace.Logging getLogging()
        The default logging attribute.
        Returns:
        the value
      • getIsForceLogging

        public Boolean getIsForceLogging()
        Indicates whether the tablespace is under Force Logging mode.
        Returns:
        the value
      • getExtentManagement

        public Tablespace.ExtentManagement getExtentManagement()
        Indicates whether the extents in the tablespace are Locally managed or Dictionary managed.
        Returns:
        the value
      • getAllocationType

        public Tablespace.AllocationType getAllocationType()
        The type of extent allocation in effect for the tablespace.
        Returns:
        the value
      • getIsPluggedIn

        public Boolean getIsPluggedIn()
        Indicates whether the tablespace is plugged in.
        Returns:
        the value
      • getSegmentSpaceManagement

        public Tablespace.SegmentSpaceManagement getSegmentSpaceManagement()
        Indicates whether the free and used segment space in the tablespace is managed using free lists (MANUAL) or bitmaps (AUTO).
        Returns:
        the value
      • getDefaultTableCompression

        public Tablespace.DefaultTableCompression getDefaultTableCompression()
        Indicates whether default table compression is enabled or disabled.
        Returns:
        the value
      • getRetention

        public Tablespace.Retention getRetention()
        Indicates whether undo retention guarantee is enabled for the tablespace.
        Returns:
        the value
      • getIsBigfile

        public Boolean getIsBigfile()
        Indicates whether the tablespace is a Bigfile tablespace or a Smallfile tablespace.
        Returns:
        the value
      • getPredicateEvaluation

        public Tablespace.PredicateEvaluation getPredicateEvaluation()
        Indicates whether predicates are evaluated by Host or by Storage.
        Returns:
        the value
      • getIsEncrypted

        public Boolean getIsEncrypted()
        Indicates whether the tablespace is encrypted.
        Returns:
        the value
      • getCompressFor

        public Tablespace.CompressFor getCompressFor()
        The operation type for which default compression is enabled.
        Returns:
        the value
      • getDefaultInMemory

        public Tablespace.DefaultInMemory getDefaultInMemory()
        Indicates whether the In-Memory Column Store (IM column store) is by default enabled or disabled for tables in the tablespace.
        Returns:
        the value
      • getDefaultInMemoryPriority

        public Tablespace.DefaultInMemoryPriority getDefaultInMemoryPriority()
        Indicates the default priority for In-Memory Column Store (IM column store) population for the tablespace.
        Returns:
        the value
      • getDefaultInMemoryDistribute

        public Tablespace.DefaultInMemoryDistribute getDefaultInMemoryDistribute()
        Indicates how the IM column store is distributed by default for the tablespace in an Oracle Real Application Clusters (Oracle RAC) environment.
        Returns:
        the value
      • getDefaultInMemoryCompression

        public Tablespace.DefaultInMemoryCompression getDefaultInMemoryCompression()
        Indicates the default compression level for the IM column store for the tablespace.
        Returns:
        the value
      • getDefaultInMemoryDuplicate

        public Tablespace.DefaultInMemoryDuplicate getDefaultInMemoryDuplicate()
        Indicates the duplicate setting for the IM column store in an Oracle RAC environment.
        Returns:
        the value
      • getShared

        public Tablespace.Shared getShared()
        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.
        Returns:
        the value
      • getDefaultIndexCompression

        public Tablespace.DefaultIndexCompression getDefaultIndexCompression()
        Indicates whether default index compression is enabled or disabled.
        Returns:
        the value
      • getIndexCompressFor

        public Tablespace.IndexCompressFor getIndexCompressFor()
        The operation type for which default index compression is enabled.
        Returns:
        the value
      • getDefaultCellMemory

        public String getDefaultCellMemory()
        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.

        Returns:
        the value
      • getDefaultInMemoryService

        public Tablespace.DefaultInMemoryService getDefaultInMemoryService()
        Indicates how the IM column store is populated on various instances by default for the tablespace.
        Returns:
        the value
      • getDefaultInMemoryServiceName

        public String getDefaultInMemoryServiceName()
        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.

        Returns:
        the value
      • getLostWriteProtect

        public Tablespace.LostWriteProtect getLostWriteProtect()
        The lost write protection setting for the tablespace.
        Returns:
        the value
      • getIsChunkTablespace

        public Boolean getIsChunkTablespace()
        Indicates whether this is a chunk tablespace.
        Returns:
        the value
      • getTempGroup

        public String getTempGroup()
        The temporary tablespace group.
        Returns:
        the value
      • getMaxSizeKB

        public BigDecimal getMaxSizeKB()
        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.

        Returns:
        the value
      • getAllocatedSizeKB

        public BigDecimal getAllocatedSizeKB()
        The allocated tablespace size in KB.
        Returns:
        the value
      • getUserSizeKB

        public BigDecimal getUserSizeKB()
        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.

        Returns:
        the value
      • getFreeSpaceKB

        public BigDecimal getFreeSpaceKB()
        The free space available in the tablespace in KB.
        Returns:
        the value
      • getUsedSpaceKB

        public BigDecimal getUsedSpaceKB()
        The total space used by the tablespace in KB.
        Returns:
        the value
      • getUsedPercentAvailable

        public Double getUsedPercentAvailable()
        The percentage of used space out of the maximum available space in the tablespace.
        Returns:
        the value
      • getUsedPercentAllocated

        public Double getUsedPercentAllocated()
        The percentage of used space out of the total allocated space in the tablespace.
        Returns:
        the value
      • getIsDefault

        public Boolean getIsDefault()
        Indicates whether this is the default tablespace.
        Returns:
        the value
      • getDatafiles

        public List<Datafile> getDatafiles()
        A list of the data files associated with the tablespace.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel