@JsonCreator public JsonScanSpec(@JsonProperty("tableName") String tableName, @JsonProperty("indexDesc") IndexDesc indexDesc, @JsonProperty("condition") QueryCondition condition) { this.tableName = tableName; this.indexDesc = indexDesc; this.condition = condition; if (this.condition != null) { List<RowkeyRange> rkRanges = ((ConditionImpl)this.condition).getRowkeyRanges(); if (rkRanges.size() > 0) { startRow = rkRanges.get(0).getStartRow(); stopRow = rkRanges.get(rkRanges.size() - 1).getStopRow(); } else { startRow = HConstants.EMPTY_START_ROW; stopRow = HConstants.EMPTY_END_ROW; } } }
QueryCondition condition = r.getCondition(); List<RowkeyRange> rowkeyRanges = ((ConditionImpl)condition).getRowkeyRanges(); byte[] start = rowkeyRanges.get(0).getStartRow(); byte[] stop = rowkeyRanges.get(rowkeyRanges.size() - 1).getStopRow();
byte[] firstStartRow = ((ConditionImpl) firstCondition).getRowkeyRanges().get(0).getStartRow(); scanSpec.setStartRow(firstStartRow);
byte[] firstStartRow = ((ConditionImpl) firstCondition).getRowkeyRanges().get(0).getStartRow(); scanSpec.setStartRow(firstStartRow);
QueryCondition condition = r.getCondition(); List<RowkeyRange> rowkeyRanges = ((ConditionImpl)condition).getRowkeyRanges(); byte[] start = rowkeyRanges.get(0).getStartRow(); byte[] stop = rowkeyRanges.get(rowkeyRanges.size() - 1).getStopRow();
@JsonCreator public JsonScanSpec(@JsonProperty("tableName") String tableName, @JsonProperty("indexDesc") IndexDesc indexDesc, @JsonProperty("condition") QueryCondition condition) { this.tableName = tableName; this.indexDesc = indexDesc; this.condition = condition; if (this.condition != null) { List<RowkeyRange> rkRanges = ((ConditionImpl)this.condition).getRowkeyRanges(); if (rkRanges.size() > 0) { startRow = rkRanges.get(0).getStartRow(); stopRow = rkRanges.get(rkRanges.size() - 1).getStopRow(); } else { startRow = HConstants.EMPTY_START_ROW; stopRow = HConstants.EMPTY_END_ROW; } } }
protected MapRDBSubScanSpec getSubScanSpec(final TabletFragmentInfo tfi) { // XXX/TODO check filter/Condition final JsonScanSpec spec = scanSpec; final String serverHostName = getRegionsToScan().get(tfi); QueryCondition condition = tfi.getTabletInfoImpl().getCondition(); byte[] startRow = condition == null ? null : ((ConditionImpl) condition).getRowkeyRanges().get(0).getStartRow(); byte[] stopRow = condition == null ? null : ((ConditionImpl) condition).getRowkeyRanges().get(0).getStopRow(); JsonSubScanSpec subScanSpec = new JsonSubScanSpec( spec.getTableName(), spec.getIndexDesc(), serverHostName, tfi.getTabletInfoImpl().getCondition(), spec.getCondition(), startRow, stopRow, getUserName()); return subScanSpec; }
protected MapRDBSubScanSpec getSubScanSpec(final TabletFragmentInfo tfi) { // XXX/TODO check filter/Condition final JsonScanSpec spec = scanSpec; final String serverHostName = getRegionsToScan().get(tfi); QueryCondition condition = tfi.getTabletInfoImpl().getCondition(); byte[] startRow = condition == null ? null : ((ConditionImpl) condition).getRowkeyRanges().get(0).getStartRow(); byte[] stopRow = condition == null ? null : ((ConditionImpl) condition).getRowkeyRanges().get(0).getStopRow(); JsonSubScanSpec subScanSpec = new JsonSubScanSpec( spec.getTableName(), spec.getIndexDesc(), serverHostName, tfi.getTabletInfoImpl().getCondition(), spec.getCondition(), startRow, stopRow, getUserName()); return subScanSpec; }