Package org.openmetadata.service.jdbi3
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final CollectionDAOprotected final Stringprotected final SearchRepositoryprotected final EntityTimeSeriesDAO -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityTimeSeriesRepository(String collectionPath, EntityTimeSeriesDAO timeSeriesDao, Class<T> entityClass, String entityType) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddRelationship(UUID fromId, UUID toId, String fromEntity, String toEntity, Relationship relationship, String json, boolean bidirectional) createNewRecord(T recordEntity, String recordFQN) createNewRecord(T recordEntity, String extension, String recordFQN) voiddeleteById(UUID id, boolean hardDelete) findFromRecords(UUID toId, String toEntityType, Relationship relationship, String fromEntityType) protected EntityReferencegetFromEntityRef(UUID toId, Relationship relationship, String fromEntityType, boolean mustHaveRelationship) getLatestRecord(String recordFQN) final ResultList<T>getResultList(List<T> entities, String beforeCursor, String afterCursor, int total) list(String offset, Long startTs, Long endTs, int limitParam, ListFilter filter, boolean latest) 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 timestampprotected voidpostCreate(T recordEntity) protected voidpostDelete(T recordEntity) protected voidsetInheritedFields(T recordEntity) protected voidstoreInternal(T recordEntity, String recordFQN) protected voidstoreInternal(T recordEntity, String recordFQN, String extension) protected voidstoreRelationship(T recordEntity) protected voidstoreRelationshipInternal(T recordEntity)
-
Field Details
-
collectionPath
-
timeSeriesDao
-
searchRepository
-
entityType
-
entityClass
-
daoCollection
-
-
Constructor Details
-
EntityTimeSeriesRepository
protected EntityTimeSeriesRepository(String collectionPath, EntityTimeSeriesDAO timeSeriesDao, Class<T> entityClass, String entityType)
-
-
Method Details
-
createNewRecord
-
createNewRecord
-
storeInternal
-
storeInternal
-
storeRelationshipInternal
-
storeRelationship
-
setInheritedFields
-
addRelationship
-
postCreate
-
postDelete
-
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
-
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
-
getById
-
deleteById
-