Class EntityTimeSeriesRepository<T extends EntityTimeSeriesInterface>

java.lang.Object
org.openmetadata.service.jdbi3.EntityTimeSeriesRepository<T>
Direct Known Subclasses:
ReportDataRepository, TestCaseResolutionStatusRepository

public abstract class EntityTimeSeriesRepository<T extends EntityTimeSeriesInterface> extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • createNewRecord

      public T createNewRecord(T recordEntity, String extension, String recordFQN)
    • createNewRecord

      public T createNewRecord(T recordEntity, String recordFQN)
    • storeInternal

      protected void storeInternal(T recordEntity, String recordFQN)
    • storeInternal

      protected void storeInternal(T recordEntity, String recordFQN, String extension)
    • storeRelationshipInternal

      protected void storeRelationshipInternal(T recordEntity)
    • storeRelationship

      protected void storeRelationship(T recordEntity)
    • setInheritedFields

      protected void setInheritedFields(T recordEntity)
    • addRelationship

      public final void addRelationship(UUID fromId, UUID toId, String fromEntity, String toEntity, Relationship relationship, String json, boolean bidirectional)
    • postCreate

      protected void postCreate(T recordEntity)
    • postDelete

      protected void postDelete(T recordEntity)
    • findFromRecords

      public final List<CollectionDAO.EntityRelationshipRecord> findFromRecords(UUID toId, String toEntityType, Relationship relationship, String fromEntityType)
    • getFromEntityRef

      protected EntityReference getFromEntityRef(UUID toId, Relationship relationship, String fromEntityType, boolean mustHaveRelationship)
    • getResultList

      public final ResultList<T> getResultList(List<T> entities, String beforeCursor, String afterCursor, int total)
    • listWithOffset

      protected ResultList<T> listWithOffset(String offset, ListFilter filter, int limitParam, Long startTs, Long endTs, boolean latest)
      Forward paginate a list of entities ordered and paginated by timestamp
      Returns:
      ResultList
    • list

      public ResultList<T> list(String offset, Long startTs, Long endTs, int limitParam, ListFilter filter, boolean latest)
    • getLatestRecord

      public T getLatestRecord(String recordFQN)
    • getById

      public T getById(UUID id)
    • deleteById

      public void deleteById(UUID id, boolean hardDelete)