Package com.foundationdb.qp.storeadapter.indexrow

Examples of com.foundationdb.qp.storeadapter.indexrow.SpatialColumnHandler.zValue()


        for(TableIndex index : indexes) {
            long zValue = -1;
            SpatialColumnHandler spatialColumnHandler = null;
            if (index.isSpatial()) {
                spatialColumnHandler = new SpatialColumnHandler(index);
                zValue = spatialColumnHandler.zValue(rowData);
            }
            writeIndexRow(session, index, rowData, hKey, indexRow, spatialColumnHandler, zValue, false);
            // Only bump row count if PK row is written (may not be written during an ALTER)
            // Bump row count *after* uniqueness checks. Avoids drift of TableStatus#getApproximateRowCount. See bug1112940.
            bumpCount |= index.isPrimaryKey();
View Full Code Here


        for(TableIndex index : rowDef.getIndexes()) {
            long zValue = -1;
            SpatialColumnHandler spatialColumnHandler = null;
            if (index.isSpatial()) {
                spatialColumnHandler = new SpatialColumnHandler(index);
                zValue = spatialColumnHandler.zValue(rowData);
            }
            deleteIndexRow(session, index, rowData, hKey, indexRow, spatialColumnHandler, zValue, false);
        }

        // Remove the group row
View Full Code Here

                        for(TableIndex index : table.rowDef().getIndexes()) {
                            long zValue = -1;
                            SpatialColumnHandler spatialColumnHandler = null;
                            if (index.isSpatial()) {
                                spatialColumnHandler = new SpatialColumnHandler(index);
                                zValue = spatialColumnHandler.zValue(rowData);
                            }
                            deleteIndexRow(session, index, rowData, hKey, indexRowBuffer, spatialColumnHandler, zValue, false);
                        }
                        if(!cascadeDelete) {
                            // Reinsert it, recomputing the hKey and maintaining indexes
View Full Code Here

                long oldZValue = -1;
                long newZValue = -1;
                SpatialColumnHandler spatialColumnHandler = null;
                if (index.isSpatial()) {
                    spatialColumnHandler = new SpatialColumnHandler(index);
                    oldZValue = spatialColumnHandler.zValue(oldRow);
                    newZValue = spatialColumnHandler.zValue(newRow);
                }
                deleteIndexRow(session, index, oldRow, hKey, indexRowBuffer, spatialColumnHandler, oldZValue, false);
                writeIndexRow(session, index, newRow, hKey, indexRowBuffer, spatialColumnHandler, newZValue, false);
            } finally {
View Full Code Here

                long newZValue = -1;
                SpatialColumnHandler spatialColumnHandler = null;
                if (index.isSpatial()) {
                    spatialColumnHandler = new SpatialColumnHandler(index);
                    oldZValue = spatialColumnHandler.zValue(oldRow);
                    newZValue = spatialColumnHandler.zValue(newRow);
                }
                deleteIndexRow(session, index, oldRow, hKey, indexRowBuffer, spatialColumnHandler, oldZValue, false);
                writeIndexRow(session, index, newRow, hKey, indexRowBuffer, spatialColumnHandler, newZValue, false);
            } finally {
                UPDATE_INDEX_TAP.out();
View Full Code Here

                    for(TableIndex index : transform.tableIndexes) {
                        long zValue = -1;
                        SpatialColumnHandler spatialColumnHandler = null;
                        if (index.isSpatial()) {
                            spatialColumnHandler = new SpatialColumnHandler(index);
                            zValue = spatialColumnHandler.zValue(rowData);
                        }
                        Key hKey = store.createKey();
                        row.hKey().copyTo(hKey);
                        store.writeIndexRow(session, index, rowData, hKey, buffer,
                                            spatialColumnHandler, zValue, true);
View Full Code Here

                        long oldZValue = -1;
                        long newZValue = -1;
                        SpatialColumnHandler spatialColumnHandler = null;
                        if (index.isSpatial()) {
                            spatialColumnHandler = new SpatialColumnHandler(index);
                            oldZValue = spatialColumnHandler.zValue(oldRowData);
                            newZValue = spatialColumnHandler.zValue(newRowData);
                        }
                        if(doDelete) {
                            store.deleteIndexRow(session, index, oldRowData, hKey, buffer, spatialColumnHandler, oldZValue, false);
                        }
View Full Code Here

                        long newZValue = -1;
                        SpatialColumnHandler spatialColumnHandler = null;
                        if (index.isSpatial()) {
                            spatialColumnHandler = new SpatialColumnHandler(index);
                            oldZValue = spatialColumnHandler.zValue(oldRowData);
                            newZValue = spatialColumnHandler.zValue(newRowData);
                        }
                        if(doDelete) {
                            store.deleteIndexRow(session, index, oldRowData, hKey, buffer, spatialColumnHandler, oldZValue, false);
                        }
                        if(doWrite) {
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.