Updated on 2025-05-29 GMT+08:00

ChainedCommonStreamBuilder

ChainedCommonStreamBuilder is an API class provided by the GaussDB JDBC driver. It is used to specify common parameters for logical and physical replication.

Inheritance Relationship of ChainedCommonStreamBuilder

ChainedCommonStreamBuilder is an API for logical replication. The implementation abstract class is AbstractCreateSlotBuilder. The inheritance class is LogicalCreateSlotBuilder which is in the com.huawei.gaussdb.jdbc.replication.fluent.logical package. The declaration of the class is as follows:

public class LogicalCreateSlotBuilder
    extends AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
    implements ChainedLogicalCreateSlotBuilder

Constructor Method

public LogicalCreateSlotBuilder(BaseConnection connection)

Common Methods

Table 1 Common methods of LogicalCreateSlotBuilder

Method

Return Type

Description

Throws

withSlotName(String slotName)

T

Specifies the name of a replication slot.

-

withOutputPlugin(String outputPlugin)

ChainedLogicalCreateSlotBuilder

Specifies a plug-in name. Currently, mppdb_decoding, sql_decoding, parallel_binary_decoding, parallel_json_decoding, and parallel_text_decoding are supported.

mppdb_decoding: a decoding output format. After this value is set, the output content is in JSON format. The output result contains the attribute information and attribute values of the related data. sql_decoding, parallel_binary_decoding, parallel_json_decoding and parallel_text_decoding are output in SQL, binary, JSON, and text format respectively based on the plug-in format.

-

make()

void

Creates a slot with the specified parameters in the database.

SQLException

self()

ChainedLogicalCreateSlotBuilder

Returns the implementation of ChainedLogicalCreateSlotBuilder.

-

This API class does not support the unplanned ALT feature.