Examples of HKey


Examples of com.foundationdb.ais.model.HKey

    private Object[] key(Key key, RowDef rowDef)
    {
        // Key traversal
        int keySize = key.getDepth();
        // HKey traversal
        HKey hKey = rowDef.table().hKey();
        List<HKeySegment> hKeySegments = hKey.segments();
        int k = 0;
        // Traverse key, guided by hKey, populating result
        Object[] keyArray = new Object[keySize];
        int h = 0;
        key.indexTo(0);
View Full Code Here

Examples of com.foundationdb.qp.row.HKey

            lookupState = LookupState.BRANCH;
        }

        private void computeBranchLookupRowHKey(Row row)
        {
            HKey ancestorHKey = row.hKey(); // row.ancestorHKey(commonAncestor);
            ancestorHKey.copyTo(lookupRowHKey);
            if (branchRootOrdinal != -1) {
                lookupRowHKey.extendWithOrdinal(branchRootOrdinal);
            }
        }
View Full Code Here

Examples of com.foundationdb.qp.row.HKey

                        setIdle();
                    }
                    if (nextRow == null) {
                        setIdle();
                    } else if (previousHKey == null || !previousHKey.prefixOf(nextRow.hKey())) {
                        HKey nextHKey = outputHKey(nextRow);
                        nextRow = (Row) nextHKey;
                        previousHKey = nextHKey;
                    } else {
                        nextRow = null;
                    }
View Full Code Here

Examples of com.foundationdb.qp.row.HKey

            return c;
        }

        private HKey outputHKey(Row row)
        {
            HKey outputHKey = adapter().newHKey(outputHKeyTableRowType.hKey());
            row.hKey().copyTo(outputHKey);
            outputHKey.useSegments(outputHKeySegments);
            return outputHKey;
        }
View Full Code Here

Examples of com.foundationdb.qp.row.HKey

        // For use by this class

        private void computeLookupRowHKey(Row row)
        {
            HKey ancestorHKey = row.ancestorHKey(commonAncestor);
            ancestorHKey.copyTo(hKey);
            if (branchRootOrdinal != -1) {
                hKey.extendWithOrdinal(branchRootOrdinal);
            }
        }
View Full Code Here

Examples of com.foundationdb.qp.row.HKey

        // For use by this class

        private void computeLookupRowHKey(Row row)
        {
            HKey ancestorHKey = row.ancestorHKey(commonAncestor);
            ancestorHKey.copyTo(hKey);
            if (branchRootOrdinal != -1) {
                hKey.extendWithOrdinal(branchRootOrdinal);
            }
        }
View Full Code Here

Examples of com.foundationdb.qp.row.HKey

            }
        }

        private void computeLookupRowHKey(Row row)
        {
            HKey ancestorHKey = row.ancestorHKey(commonAncestor);
            ancestorHKey.copyTo(lookupRowHKey);
            if (branchRootOrdinal != -1) {
                lookupRowHKey.extendWithOrdinal(branchRootOrdinal);
            }
        }
View Full Code Here

Examples of com.foundationdb.qp.row.HKey

        @Override
        public void open()
        {
            super.open();
            HKey hKey = getHKeyFromBindings();
            input.rebind(hKey, deep);
            input.open();
        }
View Full Code Here

Examples of com.foundationdb.qp.row.HKey

            }
            // Close the input, shorten our hkey, re-open and try again
            close();
            assert atTable.getParentTable() != null : atTable;
            atTable = atTable.getParentTable();
            HKey hkey = getHKeyFromBindings();
            hkey.useSegments(atTable.getDepth() + 1);
            open();
            return next();
        }
View Full Code Here

Examples of com.foundationdb.qp.row.HKey

        // For use by this class

        private Row buildHKeyRow() {
            StoreAdapter store = adapter(rowType.hKey().table());
            HKey hkey = store.newHKey(rowType.hKey());
           
            if (hkey instanceof ValuesHKey) {
                int columnIndex = 0;
                for (HKeySegment segment : rowType.hKey().segments()) {
                    for (HKeyColumn column : segment.columns()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.