File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
src/main/java/com/alipay/oceanbase/rpc/protocol/payload/impl/execute/query Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -618,4 +618,8 @@ public void setFlag(ObTableQueryFlag flag) {
618618 public void setHotOnly (boolean hotOnly ) {
619619 this .flag .setHotOnly (hotOnly );
620620 }
621+
622+ public void setGetOptimized (boolean getOptimized ) {
623+ this .flag .setGetOptimized (getOptimized );
624+ }
621625}
Original file line number Diff line number Diff line change 1919
2020public class ObTableQueryFlag {
2121 private static final int HOT_ONLY = 1 << 0 ;
22+ private static final int GET_OPTIMIZED = 1 << 1 ;
2223
2324 private long value = 0 ;
2425
@@ -43,4 +44,14 @@ public void setHotOnly(boolean hotOnly) {
4344 value = value | HOT_ONLY ;
4445 }
4546 }
47+
48+ public boolean isGetOptimized () {
49+ return (value & GET_OPTIMIZED ) != 0 ;
50+ }
51+
52+ public void setGetOptimized (boolean getOptimized ) {
53+ if (getOptimized ) {
54+ value = value | GET_OPTIMIZED ;
55+ }
56+ }
4657};
You can’t perform that action at this time.
0 commit comments