38
38
import com .alipay .oceanbase .rpc .stream .ObTableClientQueryAsyncStreamResult ;
39
39
import com .alipay .oceanbase .rpc .table .ObHBaseParams ;
40
40
import com .alipay .oceanbase .rpc .table .ObKVParams ;
41
+ import com .alipay .oceanbase .rpc .util .ObBytesString ;
41
42
import com .alipay .sofa .common .thread .SofaThreadPoolExecutor ;
42
43
43
44
import com .google .protobuf .Descriptors ;
@@ -994,6 +995,9 @@ private ObKVParams buildOBKVParams(final Scan scan) {
994
995
obHBaseParams .setCallTimeout (scannerTimeout );
995
996
obHBaseParams .setCacheBlock (scan .isGetScan ());
996
997
obHBaseParams .setAllowPartialResults (scan .getAllowPartialResults ());
998
+ for (Map .Entry <byte [], TimeRange > entry : scan .getColumnFamilyTimeRange ().entrySet ()) {
999
+ obHBaseParams .addFamilyTimeRange (new ObBytesString (entry .getKey ()), entry .getValue ().getMin (), entry .getValue ().getMax ());
1000
+ }
997
1001
}
998
1002
obKVParams .setObParamsBase (obHBaseParams );
999
1003
return obKVParams ;
@@ -1004,6 +1008,9 @@ private ObKVParams buildOBKVParams(final Get get) {
1004
1008
ObHBaseParams obHBaseParams = new ObHBaseParams ();
1005
1009
obHBaseParams .setCheckExistenceOnly (get .isCheckExistenceOnly ());
1006
1010
obHBaseParams .setCacheBlock (get .getCacheBlocks ());
1011
+ for (Map .Entry <byte [], TimeRange > entry : get .getColumnFamilyTimeRange ().entrySet ()) {
1012
+ obHBaseParams .addFamilyTimeRange (new ObBytesString (entry .getKey ()), entry .getValue ().getMin (), entry .getValue ().getMax ());
1013
+ }
1007
1014
obKVParams .setObParamsBase (obHBaseParams );
1008
1015
return obKVParams ;
1009
1016
}
0 commit comments