public GetExecutorMessage(final LocalRegion region, final Object key, final Object callbackArg, final Object routingObject, final RowFormatter targetFormat, final int[] projectionFixedColumns, final int[] projectionVarColumns, final int[] projectionLobColumns, final int[] projectionAllColumns, final TXStateInterface tx, final LanguageConnectionContext lcc, final boolean forUpdate, final boolean queryHDFS) { // acquire lock on all copies for REPEATABLE_READ super(region, key, callbackArg, routingObject, tx != null && tx.getLockingPolicy().readCanStartTX(), tx, getTimeStatsSettings(lcc)); final int offsetBytes = targetFormat.getNumOffsetBytes(); assert offsetBytes > 0 && offsetBytes <= 4: offsetBytes; this.targetFormat = targetFormat; this.projectionFixedColumns = projectionFixedColumns; this.projectionVarColumns = projectionVarColumns; this.projectionLobColumns = projectionLobColumns; this.projectionAllColumns = projectionAllColumns; this.targetFormatOffsetBytes = (byte)offsetBytes; this.hasProjection = projectionAllColumns != null; this.forUpdate = forUpdate; this.hasLoader = ((GemFireContainer)region.getUserAttribute()) .getHasLoaderAnywhere(); if (isTransactional() && !region.getScope().isLocal()) { // check for loader in the region this.canStartTX = getLockingPolicy().readCanStartTX() || this.forUpdate || this.hasLoader; } this.queryHDFS = queryHDFS; }
public GetExecutorMessage(final LocalRegion region, final Object key, final Object callbackArg, final Object routingObject, final RowFormatter targetFormat, final int[] projectionFixedColumns, final int[] projectionVarColumns, final int[] projectionLobColumns, final int[] projectionAllColumns, final TXStateInterface tx, final LanguageConnectionContext lcc, final boolean forUpdate, final boolean queryHDFS) { // acquire lock on all copies for REPEATABLE_READ super(region, key, callbackArg, routingObject, tx != null && tx.getLockingPolicy().readCanStartTX(), tx, getTimeStatsSettings(lcc)); final int offsetBytes = targetFormat.getNumOffsetBytes(); assert offsetBytes > 0 && offsetBytes <= 4: offsetBytes; this.targetFormat = targetFormat; this.projectionFixedColumns = projectionFixedColumns; this.projectionVarColumns = projectionVarColumns; this.projectionLobColumns = projectionLobColumns; this.projectionAllColumns = projectionAllColumns; this.targetFormatOffsetBytes = (byte)offsetBytes; this.hasProjection = projectionAllColumns != null; this.forUpdate = forUpdate; this.hasLoader = ((GemFireContainer)region.getUserAttribute()) .getHasLoaderAnywhere(); if (isTransactional() && !region.getScope().isLocal()) { // check for loader in the region this.canStartTX = getLockingPolicy().readCanStartTX() || this.forUpdate || this.hasLoader; } this.queryHDFS = queryHDFS; }
public GetExecutorMessage(final LocalRegion region, final Object key, final Object callbackArg, final Object routingObject, final RowFormatter targetFormat, final int[] projectionFixedColumns, final int[] projectionVarColumns, final int[] projectionLobColumns, final int[] projectionAllColumns, final TXStateInterface tx, final LanguageConnectionContext lcc, final boolean forUpdate, final boolean queryHDFS) { // acquire lock on all copies for REPEATABLE_READ super(region, key, callbackArg, routingObject, tx != null && tx.getLockingPolicy().readCanStartTX(), tx, getTimeStatsSettings(lcc)); final int offsetBytes = targetFormat.getNumOffsetBytes(); assert offsetBytes > 0 && offsetBytes <= 4: offsetBytes; this.targetFormat = targetFormat; this.projectionFixedColumns = projectionFixedColumns; this.projectionVarColumns = projectionVarColumns; this.projectionLobColumns = projectionLobColumns; this.projectionAllColumns = projectionAllColumns; this.targetFormatOffsetBytes = (byte)offsetBytes; this.hasProjection = projectionAllColumns != null; this.forUpdate = forUpdate; this.hasLoader = ((GemFireContainer)region.getUserAttribute()) .getHasLoaderAnywhere(); if (isTransactional() && !region.getScope().isLocal()) { // check for loader in the region this.canStartTX = getLockingPolicy().readCanStartTX() || this.forUpdate || this.hasLoader; } this.queryHDFS = queryHDFS; }