Package com.foundationdb.qp.row

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


                        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

            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

        // 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

        // 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

            }
        }

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

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

            }
            // 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

        // 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

       pkKey.append (1L);
       pkKey.append(1);
       row.copyFrom(pkKey, null);
      
       assertTrue (!row.keyEmpty());
       HKey hKey = row.ancestorHKey(customers);
       assertNotNull (hKey);
       assertTrue(hKey.segments() == 1);
       assertTrue(hKey.value(0).getInt64() == 1);
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.qp.row.HKey

Copyright © 2018 www.massapicom. 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.