SequencePreallocator
public class SequenceRange extends java.lang.Object implements SequencePreallocator
Default Derby logic for determining how many values to pre-allocate for an identity column or sequence.
Modifier and Type | Field | Description |
---|---|---|
private int |
_rangeSize |
|
private static int |
DEFAULT_PREALLOCATION_COUNT |
Default number of values to pre-allocate.
|
Constructor | Description |
---|---|
SequenceRange() |
0-arg constructore needed to satisfy the SequencePreallocator contract.
|
SequenceRange(int rangeSize) |
Modifier and Type | Method | Description |
---|---|---|
int |
nextRangeSize(java.lang.String schemaName,
java.lang.String sequenceName) |
This method returns the size of the next pre-allocated range for the specified
sequence.
|
private static final int DEFAULT_PREALLOCATION_COUNT
private int _rangeSize
public SequenceRange()
0-arg constructore needed to satisfy the SequencePreallocator contract.
public SequenceRange(int rangeSize)
public int nextRangeSize(java.lang.String schemaName, java.lang.String sequenceName)
SequencePreallocator
This method returns the size of the next pre-allocated range for the specified sequence. Names are case-sensitive, as specified in CREATE SEQUENCE and CREATE TABLE statements.
nextRangeSize
in interface SequencePreallocator
schemaName
- Name of schema holding the sequence.sequenceName
- Specific name of the sequence.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.