Class ReactiveMultiKeyLoadChunker<K>
- java.lang.Object
-
- org.hibernate.reactive.loader.ast.internal.ReactiveMultiKeyLoadChunker<K>
-
public class ReactiveMultiKeyLoadChunker<K> extends java.lang.Object
- See Also:
MultiKeyLoadChunker
-
-
Constructor Summary
Constructors Constructor Description ReactiveMultiKeyLoadChunker(int chunkSize, int keyColumnCount, org.hibernate.metamodel.mapping.Bindable bindable, org.hibernate.sql.exec.spi.JdbcParametersList jdbcParameters, org.hibernate.sql.ast.tree.select.SelectStatement sqlAst, org.hibernate.sql.exec.spi.JdbcOperationQuerySelect jdbcSelect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<java.lang.Void>
processChunks(K[] keys, int nonNullElementCount, org.hibernate.reactive.loader.ast.internal.ReactiveMultiKeyLoadChunker.SqlExecutionContextCreator sqlExecutionContextCreator, org.hibernate.reactive.loader.ast.internal.ReactiveMultiKeyLoadChunker.KeyCollector<K> keyCollector, org.hibernate.reactive.loader.ast.internal.ReactiveMultiKeyLoadChunker.ChunkStartListener startListener, org.hibernate.reactive.loader.ast.internal.ReactiveMultiKeyLoadChunker.ChunkBoundaryListener boundaryListener, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Process the chunks
-
-
-
Constructor Detail
-
ReactiveMultiKeyLoadChunker
public ReactiveMultiKeyLoadChunker(int chunkSize, int keyColumnCount, org.hibernate.metamodel.mapping.Bindable bindable, org.hibernate.sql.exec.spi.JdbcParametersList jdbcParameters, org.hibernate.sql.ast.tree.select.SelectStatement sqlAst, org.hibernate.sql.exec.spi.JdbcOperationQuerySelect jdbcSelect)
-
-
Method Detail
-
processChunks
public java.util.concurrent.CompletionStage<java.lang.Void> processChunks(K[] keys, int nonNullElementCount, org.hibernate.reactive.loader.ast.internal.ReactiveMultiKeyLoadChunker.SqlExecutionContextCreator sqlExecutionContextCreator, org.hibernate.reactive.loader.ast.internal.ReactiveMultiKeyLoadChunker.KeyCollector<K> keyCollector, org.hibernate.reactive.loader.ast.internal.ReactiveMultiKeyLoadChunker.ChunkStartListener startListener, org.hibernate.reactive.loader.ast.internal.ReactiveMultiKeyLoadChunker.ChunkBoundaryListener boundaryListener, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Process the chunks- Parameters:
keys
- The group of keys to be initializednonNullElementCount
- The number of non-null values inkeys
, which will be less-than-or-equal-to the number ofkeys
startListener
- Notifications that processing a chunk has startingkeyCollector
- Called for each key as it is processedboundaryListener
- Notifications that processing a chunk has completed
-
-