From aa9555c6679d41a7c6f9d05c7fa2178d2882dd6e Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Thu, 19 May 2016 02:43:54 +0000 Subject: 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 --- .../java/com/healthmarketscience/jackcess/impl/TableImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java') 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); -- cgit v1.2.3