}
public int compare(SortOrder sortOrder, int leftPosition, int rightPosition)
{
long leftSliceAddress = valueAddresses.getLong(leftPosition);
Slice leftSlice = getSliceForSyntheticAddress(leftSliceAddress);
int leftOffset = decodePosition(leftSliceAddress);
long rightSliceAddress = valueAddresses.getLong(rightPosition);
Slice rightSlice = getSliceForSyntheticAddress(rightSliceAddress);
int rightOffset = decodePosition(rightSliceAddress);
boolean leftIsNull = tupleInfo.isNull(leftSlice, leftOffset);
boolean rightIsNull = tupleInfo.isNull(rightSlice, rightOffset);