Package com.foundationdb.qp.row

Examples of com.foundationdb.qp.row.WriteIndexRow


                rowDef.getTableStatus().setAutoIncrement(session, autoIncrementValue);
            }
        }

        boolean bumpCount = false;
        WriteIndexRow indexRow = new WriteIndexRow(this);
        for(TableIndex index : indexes) {
            long zValue = -1;
            SpatialColumnHandler spatialColumnHandler = null;
            if (index.isSpatial()) {
                spatialColumnHandler = new SpatialColumnHandler(index);
View Full Code Here


        for(RowListener listener : listenerService.getRowListeners()) {
            listener.onDeletePre(session, rowDef.table(), hKey, rowData);
        }

        // Remove all indexes (before the group row is gone in-case listener needs it)
        WriteIndexRow indexRow = new WriteIndexRow(this);
        for(TableIndex index : rowDef.getIndexes()) {
            long zValue = -1;
            SpatialColumnHandler spatialColumnHandler = null;
            if (index.isSpatial()) {
                spatialColumnHandler = new SpatialColumnHandler(index);
View Full Code Here

            for(RowListener listener : listenerService.getRowListeners()) {
                listener.onUpdatePost(session, oldRowDef.table(), hKey, oldRow, mergedRow);
            }

            WriteIndexRow indexRowBuffer = new WriteIndexRow(this);
            for(TableIndex index : oldRowDef.getIndexes()) {
                updateIndex(session, index, oldRowDef, currentRow, newRowDef, mergedRow, hKey, indexRowBuffer);
            }
        } else {
            // A PK or FK field has changed. Process the update by delete and insert.
View Full Code Here

    private final Collection<RowType> lockTypes;

    private StoreGIHandler(AbstractStore<SType,SDType,SSDType> store, Session session, Schema schema, Table sourceTable, Table lockLeaf) {
        this.store = store;
        this.session = session;
        this.indexRow = new WriteIndexRow(store);
        this.sourceTable = sourceTable;
        if(lockLeaf == null) {
            this.lockTypes = null;
        } else {
            this.lockTypes = new ArrayList<>(lockLeaf.getDepth());
View Full Code Here

    private void buildTableIndexes(final Session session,
                                   QueryContext context,
                                   StoreAdapter adapter,
                                   final TransformCache transformCache,
                                   Multimap<Group,RowType> tableIndexes) {
        final WriteIndexRow buffer = new WriteIndexRow(adapter);
        for(Entry<Group, Collection<RowType>> entry : tableIndexes.asMap().entrySet()) {
            if(entry.getValue().isEmpty()) {
                continue;
            }
            Operator plan = API.filter_Default(
View Full Code Here

        final boolean doWrite = (newRowData != null);
        QueryContext context = null;
        switch(transform.changeLevel) {
            case INDEX:
                if(!transform.tableIndexes.isEmpty()) {
                    WriteIndexRow buffer = new WriteIndexRow (store);
                    for(TableIndex index : transform.tableIndexes) {
                        long oldZValue = -1;
                        long newZValue = -1;
                        SpatialColumnHandler spatialColumnHandler = null;
                        if (index.isSpatial()) {
View Full Code Here

TOP

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

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.