@@ -85,14 +85,14 @@ public static boolean compare(BaseVariableWidthVector left, int leftIndex,
8585    int  offsetWidth  = BaseVariableWidthVector .OFFSET_WIDTH ;
8686
8787    if  (!isNull ) {
88-       final  int  start1  = left .getOffsetBuffer ().getInt (leftIndex  * offsetWidth );
89-       final  int  end1  = left .getOffsetBuffer ().getInt ((leftIndex  + 1 ) * offsetWidth );
88+       final  int  startByteLeft  = left .getOffsetBuffer ().getInt (leftIndex  * offsetWidth );
89+       final  int  endByteLeft  = left .getOffsetBuffer ().getInt ((leftIndex  + 1 ) * offsetWidth );
9090
91-       final  int  start2  = right .getOffsetBuffer ().getInt (rightIndex  * offsetWidth );
92-       final  int  end2  = right .getOffsetBuffer ().getInt ((rightIndex  + 1 ) * offsetWidth );
91+       final  int  startByteRight  = right .getOffsetBuffer ().getInt (rightIndex  * offsetWidth );
92+       final  int  endByteRight  = right .getOffsetBuffer ().getInt ((rightIndex  + 1 ) * offsetWidth );
9393
94-       int  ret  = ByteFunctionHelpers .equal (left .getDataBuffer (), start1 ,  end1 ,
95-           right .getDataBuffer (), start2 ,  end2 );
94+       int  ret  = ByteFunctionHelpers .equal (left .getDataBuffer (), startByteLeft ,  endByteLeft ,
95+           right .getDataBuffer (), startByteRight ,  endByteRight );
9696
9797      if  (ret  == 0 ) {
9898        return  false ;
@@ -129,10 +129,10 @@ public static boolean compare(ListVector left, int leftIndex, ListVector right,
129129        return  false ;
130130      }
131131
132-       ValueVector  dataVector1  = left .getDataVector ();
133-       ValueVector  dataVector2  = right .getDataVector ();
132+       ValueVector  leftDataVector  = left .getDataVector ();
133+       ValueVector  rightDataVector  = right .getDataVector ();
134134
135-       if  (!dataVector1 .accept (new  RangeEqualsVisitor (dataVector2 , startByteLeft ,
135+       if  (!leftDataVector .accept (new  RangeEqualsVisitor (rightDataVector , startByteLeft ,
136136          startByteRight , (endByteLeft  - startByteLeft )))) {
137137        return  false ;
138138      }
@@ -157,20 +157,21 @@ public static boolean compare(FixedSizeListVector left, int leftIndex, FixedSize
157157    int  listSize  = left .getListSize ();
158158
159159    if  (!isNull ) {
160-       final  int  start1  = leftIndex  * listSize ;
161-       final  int  end1  = (leftIndex  + 1 ) * listSize ;
160+       final  int  startByteLeft  = leftIndex  * listSize ;
161+       final  int  endByteLeft  = (leftIndex  + 1 ) * listSize ;
162162
163-       final  int  start2  = rightIndex  * listSize ;
164-       final  int  end2  = (rightIndex  + 1 ) * listSize ;
163+       final  int  startByteRight  = rightIndex  * listSize ;
164+       final  int  endByteRight  = (rightIndex  + 1 ) * listSize ;
165165
166-       if  ((end1  - start1 ) != (end2  - start2 )) {
166+       if  ((endByteLeft  - startByteLeft ) != (endByteRight  - startByteRight )) {
167167        return  false ;
168168      }
169169
170-       ValueVector  dataVector1  = left .getDataVector ();
171-       ValueVector  dataVector2  = right .getDataVector ();
170+       ValueVector  leftDataVector  = left .getDataVector ();
171+       ValueVector  rightDataVector  = right .getDataVector ();
172172
173-       if  (!dataVector1 .accept (new  RangeEqualsVisitor (dataVector2 , start1 , start2 , (end1  - start1 )))) {
173+       if  (!leftDataVector .accept (new  RangeEqualsVisitor (rightDataVector , startByteLeft , startByteRight ,
174+           (endByteLeft  - startByteLeft )))) {
174175        return  false ;
175176      }
176177    }
0 commit comments