Class 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 initialized
        nonNullElementCount - The number of non-null values in keys, which will be less-than-or-equal-to the number of keys
        startListener - Notifications that processing a chunk has starting
        keyCollector - Called for each key as it is processed
        boundaryListener - Notifications that processing a chunk has completed