boolean allocateIndex(int index) {

		// Increase index count
		if (index >= nextIndex) {
			for (int i = nextIndex; i < index; i++) {
				freeIndexStack.push(Integer.valueOf(i));
			}
			nextIndex = index + 1;
			return true;
		}
		
		return freeIndexStack.remove(Integer.valueOf(index));
	}
Allocate a specific index.  Current index count will be adjusted if
specified index exceeds current index count;
@param index requested index
@return true if index was successfully allocated
Ghidra/Framework/DB/src/main/java/db/buffers/IndexProvider.java