Interface TimescaleDbMetadata

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
AbstractTimescaleDbMetadata, QueryInformationSchemaMetadata

public interface TimescaleDbMetadata extends Closeable
A repository resolving TimescaleDB related metadata. The implementations can differ but the basic one is expected to just read TimescaleDB information schema and resolve metadata according to it.
Author:
Jiri Pechanec
  • Method Details

    • isTimescaleDbSchema

      boolean isTimescaleDbSchema(String schemaName)
      Parameters:
      schemaName -
      Returns:
      true if the schema name is one used by TimescaleDB to store data
    • hypertableId

      Optional<TableId> hypertableId(TableId chunkId)
      Returns the TableId to 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

      Optional<TableId> aggregateId(TableId hypertableId)
      Returns the TableId that represents continuous aggregate view for which the hypertable is backend. Empty if hypertable is not associated with a continuous aggregate view.