Interface CrudIngestionRunRepository
- 
- All Known Implementing Classes:
- DefaultIngestionRunRepository
 
 public interface CrudIngestionRunRepositoryA repository for basic storage of the ingestion run information. UnlikeIngestionRunRepositorythis repository should only provide simple CRUD operations, treating the provided/fetched data as is, without any additional logic.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<IngestionRun>findBy(Column condition, Column sorted)Finds first ingestion run matching specified condition from sorted result.List<IngestionRun>findOngoingIngestionRuns()Finds all ingestion runs with the status ofIN_PROGRESS.List<IngestionRun>findOngoingIngestionRuns(String resourceIngestionDefinitionId)Finds all ingestion runs created for the specified resource ingestion definition id and with the status ofIN_PROGRESS.List<IngestionRun>findOngoingIngestionRunsWhere(Column condition)Finds all ingestion runs satisfying the specified condition and with the status ofIN_PROGRESS.List<IngestionRun>findWhere(Column condition)Finds all ingestion runs satisfying the specified condition.static CrudIngestionRunRepositorygetInstance(Session session)Returns a new instance of the default repository implementation.voidsave(IngestionRun ingestionRun)Saves the provided ingestion run.
 
- 
- 
- 
Method Detail- 
savevoid save(IngestionRun ingestionRun) Saves the provided ingestion run.Since the startedAtandupdatedAtproperties of the run are required, they will be set to default values if not provided, despite the simple nature of this repository.- Parameters:
- ingestionRun- ingestion run
 
 - 
findWhereList<IngestionRun> findWhere(Column condition) Finds all ingestion runs satisfying the specified condition.- Parameters:
- condition- ingestion run condition
- Returns:
- all ingestion runs satisfying the specified condition
 
 - 
findByOptional<IngestionRun> findBy(Column condition, Column sorted) Finds first ingestion run matching specified condition from sorted result.- Parameters:
- condition- condition matching ingestion runs
- sorted- sorting order
- Returns:
- first ingestion run matching specified condition from sorted result
 
 - 
findOngoingIngestionRunsList<IngestionRun> findOngoingIngestionRuns() Finds all ingestion runs with the status ofIN_PROGRESS.- Returns:
- all ongoing ingestion runs
 
 - 
findOngoingIngestionRunsList<IngestionRun> findOngoingIngestionRuns(String resourceIngestionDefinitionId) Finds all ingestion runs created for the specified resource ingestion definition id and with the status ofIN_PROGRESS.- Parameters:
- resourceIngestionDefinitionId- resource ingestion definition id
- Returns:
- all ongoing ingestion runs created for the specified resource ingestion definition id
 
 - 
findOngoingIngestionRunsWhereList<IngestionRun> findOngoingIngestionRunsWhere(Column condition) Finds all ingestion runs satisfying the specified condition and with the status ofIN_PROGRESS.- Parameters:
- condition- condition for the ingestion run
- Returns:
- all ongoing ingestion runs satisfying the specified condition
 
 - 
getInstancestatic CrudIngestionRunRepository getInstance(Session session) Returns a new instance of the default repository implementation.Default implementation of the repository uses the STATE.INGESTION_RUNtable.Default implementation of the repository also implements additional methods from the IngestionRunRepositoryinterface.- Parameters:
- session- Snowpark session object
- Returns:
- a new repository instance
 
 
- 
 
-