Class TablespaceSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • blockSizeBytes

        public TablespaceSummary.Builder blockSizeBytes​(BigDecimal blockSizeBytes)
        The tablespace block size.
        Parameters:
        blockSizeBytes - the value to set
        Returns:
        this builder
      • isForceLogging

        public TablespaceSummary.Builder isForceLogging​(Boolean isForceLogging)
        Indicates whether the tablespace is under Force Logging mode.
        Parameters:
        isForceLogging - the value to set
        Returns:
        this builder
      • isPluggedIn

        public TablespaceSummary.Builder isPluggedIn​(Boolean isPluggedIn)
        Indicates whether the tablespace is plugged in.
        Parameters:
        isPluggedIn - the value to set
        Returns:
        this builder
      • segmentSpaceManagement

        public TablespaceSummary.Builder segmentSpaceManagement​(TablespaceSummary.SegmentSpaceManagement segmentSpaceManagement)
        Indicates whether the free and used segment space in the tablespace is managed using free lists (MANUAL) or bitmaps (AUTO).
        Parameters:
        segmentSpaceManagement - the value to set
        Returns:
        this builder
      • isBigfile

        public TablespaceSummary.Builder isBigfile​(Boolean isBigfile)
        Indicates whether the tablespace is a Bigfile tablespace or a Smallfile tablespace.
        Parameters:
        isBigfile - the value to set
        Returns:
        this builder
      • isEncrypted

        public TablespaceSummary.Builder isEncrypted​(Boolean isEncrypted)
        Indicates whether the tablespace is encrypted.
        Parameters:
        isEncrypted - the value to set
        Returns:
        this builder
      • defaultInMemory

        public TablespaceSummary.Builder defaultInMemory​(TablespaceSummary.DefaultInMemory defaultInMemory)
        Indicates whether the In-Memory Column Store (IM column store) is by default enabled or disabled for tables in the tablespace.
        Parameters:
        defaultInMemory - the value to set
        Returns:
        this builder
      • defaultInMemoryPriority

        public TablespaceSummary.Builder defaultInMemoryPriority​(TablespaceSummary.DefaultInMemoryPriority defaultInMemoryPriority)
        Indicates the default priority for In-Memory Column Store (IM column store) population for the tablespace.
        Parameters:
        defaultInMemoryPriority - the value to set
        Returns:
        this builder
      • defaultInMemoryDistribute

        public TablespaceSummary.Builder defaultInMemoryDistribute​(TablespaceSummary.DefaultInMemoryDistribute defaultInMemoryDistribute)
        Indicates how the IM column store is distributed by default for the tablespace in an Oracle Real Application Clusters (Oracle RAC) environment.
        Parameters:
        defaultInMemoryDistribute - the value to set
        Returns:
        this builder
      • shared

        public TablespaceSummary.Builder shared​(TablespaceSummary.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.
        Parameters:
        shared - the value to set
        Returns:
        this builder
      • defaultCellMemory

        public TablespaceSummary.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.

        Parameters:
        defaultCellMemory - the value to set
        Returns:
        this builder
      • defaultInMemoryService

        public TablespaceSummary.Builder defaultInMemoryService​(TablespaceSummary.DefaultInMemoryService defaultInMemoryService)
        Indicates how the IM column store is populated on various instances by default for the tablespace.
        Parameters:
        defaultInMemoryService - the value to set
        Returns:
        this builder
      • defaultInMemoryServiceName

        public TablespaceSummary.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.

        Parameters:
        defaultInMemoryServiceName - the value to set
        Returns:
        this builder
      • isChunkTablespace

        public TablespaceSummary.Builder isChunkTablespace​(Boolean isChunkTablespace)
        Indicates whether this is a chunk tablespace.
        Parameters:
        isChunkTablespace - the value to set
        Returns:
        this builder
      • tempGroup

        public TablespaceSummary.Builder tempGroup​(String tempGroup)
        The temporary tablespace group.
        Parameters:
        tempGroup - the value to set
        Returns:
        this builder
      • maxSizeKB

        public TablespaceSummary.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.

        Parameters:
        maxSizeKB - the value to set
        Returns:
        this builder
      • allocatedSizeKB

        public TablespaceSummary.Builder allocatedSizeKB​(BigDecimal allocatedSizeKB)
        The allocated tablespace size in KB.
        Parameters:
        allocatedSizeKB - the value to set
        Returns:
        this builder
      • userSizeKB

        public TablespaceSummary.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.

        Parameters:
        userSizeKB - the value to set
        Returns:
        this builder
      • freeSpaceKB

        public TablespaceSummary.Builder freeSpaceKB​(BigDecimal freeSpaceKB)
        The free space available in the tablespace in KB.
        Parameters:
        freeSpaceKB - the value to set
        Returns:
        this builder
      • usedSpaceKB

        public TablespaceSummary.Builder usedSpaceKB​(BigDecimal usedSpaceKB)
        The total space used by the tablespace in KB.
        Parameters:
        usedSpaceKB - the value to set
        Returns:
        this builder
      • usedPercentAvailable

        public TablespaceSummary.Builder usedPercentAvailable​(Double usedPercentAvailable)
        The percentage of used space out of the maximum available space in the tablespace.
        Parameters:
        usedPercentAvailable - the value to set
        Returns:
        this builder
      • usedPercentAllocated

        public TablespaceSummary.Builder usedPercentAllocated​(Double usedPercentAllocated)
        The percentage of used space out of the total allocated space in the tablespace.
        Parameters:
        usedPercentAllocated - the value to set
        Returns:
        this builder
      • isDefault

        public TablespaceSummary.Builder isDefault​(Boolean isDefault)
        Indicates whether this is the default tablespace.
        Parameters:
        isDefault - the value to set
        Returns:
        this builder
      • datafiles

        public TablespaceSummary.Builder datafiles​(List<Datafile> datafiles)
        A list of the data files associated with the tablespace.
        Parameters:
        datafiles - the value to set
        Returns:
        this builder