aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2016-05-19 02:43:54 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2016-05-19 02:43:54 +0000
commitaa9555c6679d41a7c6f9d05c7fa2178d2882dd6e (patch)
tree8f9db0983f9bc2da8678bf01a07cae1157106780 /src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
parent627e22dee739fb737df8fb1443554e243d903222 (diff)
downloadjackcess-aa9555c6679d41a7c6f9d05c7fa2178d2882dd6e.tar.gz
jackcess-aa9555c6679d41a7c6f9d05c7fa2178d2882dd6e.zip
add support for sharing backing index data across indexes during table creation
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/mutateops@994 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
index 18fee24..1a3d19f 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
@@ -1503,16 +1503,16 @@ public class TableImpl implements Table
// index umap
int indexIdx = i - 2;
- IndexBuilder idx = creator.getIndexes().get(indexIdx);
+ TableCreator.IndexDataState idxDataState =
+ creator.getIndexDataStates().get(indexIdx);
// allocate root page for the index
int rootPageNumber = pageChannel.allocateNewPage();
// stash info for later use
- TableCreator.IndexState idxState = creator.getIndexState(idx);
- idxState.setRootPageNumber(rootPageNumber);
- idxState.setUmapRowNumber((byte)umapRowNum);
- idxState.setUmapPageNumber(umapPageNumber);
+ idxDataState.setRootPageNumber(rootPageNumber);
+ idxDataState.setUmapRowNumber((byte)umapRowNum);
+ idxDataState.setUmapPageNumber(umapPageNumber);
// index map definition, including initial root page
umapBuf.put(rowStart, UsageMap.MAP_TYPE_INLINE);