Class MultiKeyLoadChunker<K>
- java.lang.Object
-
- org.hibernate.loader.ast.internal.MultiKeyLoadChunker<K>
-
public class MultiKeyLoadChunker<K> extends Object
When the number of ids to initialize exceeds a certain threshold, IN-predicate based multi-key loaders will break the initialization into "chunks".
-
-
Constructor Summary
Constructors Constructor Description MultiKeyLoadChunker(int chunkSize, int keyColumnCount, Bindable bindable, JdbcParametersList jdbcParameters, SelectStatement sqlAst, JdbcOperationQuerySelect jdbcSelect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processChunks(K[] keys, int nonNullElementCount, org.hibernate.loader.ast.internal.MultiKeyLoadChunker.SqlExecutionContextCreator sqlExecutionContextCreator, org.hibernate.loader.ast.internal.MultiKeyLoadChunker.KeyCollector<K> keyCollector, org.hibernate.loader.ast.internal.MultiKeyLoadChunker.ChunkStartListener startListener, org.hibernate.loader.ast.internal.MultiKeyLoadChunker.ChunkBoundaryListener boundaryListener, SharedSessionContractImplementor session)
Process the chunks
-
-
-
Constructor Detail
-
MultiKeyLoadChunker
public MultiKeyLoadChunker(int chunkSize, int keyColumnCount, Bindable bindable, JdbcParametersList jdbcParameters, SelectStatement sqlAst, JdbcOperationQuerySelect jdbcSelect)
-
-
Method Detail
-
processChunks
public void processChunks(K[] keys, int nonNullElementCount, org.hibernate.loader.ast.internal.MultiKeyLoadChunker.SqlExecutionContextCreator sqlExecutionContextCreator, org.hibernate.loader.ast.internal.MultiKeyLoadChunker.KeyCollector<K> keyCollector, org.hibernate.loader.ast.internal.MultiKeyLoadChunker.ChunkStartListener startListener, org.hibernate.loader.ast.internal.MultiKeyLoadChunker.ChunkBoundaryListener boundaryListener, 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
-
-