public void resetSortingValues() {
    this.useSorted = false;
    this.isBinarySearching = false;
    this.endBinarySearch = false;
    this.comparison = null;
    this.genericUDFClassName = null;
  }
The thread local IOContext is static, we may need to restart the search if, for instance,
multiple files are being searched as part of a CombinedHiveRecordReader
ql/src/java/org/apache/hadoop/hive/ql/io/IOContext.java