Package org.pgcodekeeper.core.schema
Interface ICompressOptionContainer
- All Known Implementing Classes:
PgBaseType,PgColumn
public interface ICompressOptionContainer
Interface for database objects that support compression options.
Provides functionality for managing compression type, level, and block size settings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault block size.static final intDefault compression level.static final StringDefault compression type. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfillCompressOptions(ICompressOptionContainer statement, String compressOptions) Parses and fills compression options from a comma-separated string.voidsetBlockSize(int blockSize) Sets the block size for this object.voidsetCompressLevel(int compressLevel) Sets the compression level for this object.voidsetCompressType(String compressType) Sets the compression type for this object.
-
Field Details
-
DEFAULT_COMPESS_TYPE
Default compression type.- See Also:
-
DEFAULT_COMPESS_LEVEL
static final int DEFAULT_COMPESS_LEVELDefault compression level.- See Also:
-
DEFAULT_BLOCK_SIZE
static final int DEFAULT_BLOCK_SIZEDefault block size.- See Also:
-
-
Method Details
-
setCompressType
Sets the compression type for this object.- Parameters:
compressType- the compression type to set
-
setCompressLevel
void setCompressLevel(int compressLevel) Sets the compression level for this object.- Parameters:
compressLevel- the compression level to set
-
setBlockSize
void setBlockSize(int blockSize) Sets the block size for this object.- Parameters:
blockSize- the block size to set
-
fillCompressOptions
Parses and fills compression options from a comma-separated string.- Parameters:
statement- the statement to apply options tocompressOptions- the options string to parse
-