Class QueryInformationSchemaMetadata
java.lang.Object
io.debezium.connector.postgresql.transforms.timescaledb.AbstractTimescaleDbMetadata
io.debezium.connector.postgresql.transforms.timescaledb.QueryInformationSchemaMetadata
- All Implemented Interfaces:
TimescaleDbMetadata,Closeable,AutoCloseable
TimescaleDB metadata registry that performs out-of-band queries of TimescaleDB catalog to get
the mappings between chunks, hypertables and aggregates.
- Author:
- Jiri Pechanec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final PostgresConnectionprivate static final org.slf4j.Loggerprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregateId(TableId hypertableId) Returns theTableIdthat represents continuous aggregate view for which the hypertable is backend.voidclose()hypertableId(TableId chunkId) Returns theTableIdto which given chunk belong.private voidMethods inherited from class io.debezium.connector.postgresql.transforms.timescaledb.AbstractTimescaleDbMetadata
isTimescaleDbSchema
-
Field Details
-
CATALOG_SCHEMA
- See Also:
-
QUERY_HYPERTABLE_TO_AGGREGATE
-
QUERY_CHUNK_TO_HYPERTABLE
-
LOGGER
private static final org.slf4j.Logger LOGGER -
connection
-
chunkToHypertable
-
hypertableToAggregate
-
-
Constructor Details
-
QueryInformationSchemaMetadata
-
-
Method Details
-
hypertableId
Description copied from interface:TimescaleDbMetadataReturns theTableIdto which given chunk belong. Empty if this is not TimescaleDB chunk identifier. Resolution if the identifier is chunk or not is based on a preconfigured list of schemas. -
aggregateId
Description copied from interface:TimescaleDbMetadataReturns theTableIdthat represents continuous aggregate view for which the hypertable is backend. Empty if hypertable is not associated with a continuous aggregate view. -
close
- Throws:
IOException
-
loadTimescaleMetadata
private void loadTimescaleMetadata()
-