Package io.debezium.relational
Record Class RelationalSnapshotChangeEventSource.SnapshotSelect
java.lang.Object
java.lang.Record
io.debezium.relational.RelationalSnapshotChangeEventSource.SnapshotSelect
- Record Components:
statement- valid query string or null if table is not to be snapshotselectOverride- if the query originates as a user-defined snapshot select override
- Enclosing class:
RelationalSnapshotChangeEventSource<P extends Partition,O extends OffsetContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theselectOverriderecord component.private final StringThe field for thestatementrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSnapshotSelect(String statement, boolean selectOverride) Creates an instance of aSnapshotSelectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanReturns the value of theselectOverriderecord component.Returns the value of thestatementrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
statement
The field for thestatementrecord component. -
selectOverride
private final boolean selectOverrideThe field for theselectOverriderecord component.
-
-
Constructor Details
-
SnapshotSelect
Creates an instance of aSnapshotSelectrecord class.- Parameters:
statement- the value for thestatementrecord componentselectOverride- the value for theselectOverriderecord component
-
-
Method Details
-
hasSnapshotSelectQuery
public boolean hasSnapshotSelectQuery() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
statement
Returns the value of thestatementrecord component.- Returns:
- the value of the
statementrecord component
-
selectOverride
public boolean selectOverride()Returns the value of theselectOverriderecord component.- Returns:
- the value of the
selectOverriderecord component
-