private TFetchOrientation getFetchOrientation(boolean incremental) {
    return (incremental) ? TFetchOrientation.FETCH_NEXT : TFetchOrientation.FETCH_FIRST;
  }
Get the execution logs of the given SQL statement.
This method is a public API for usage outside of Hive, although it is not part of the
interface java.sql.Statement.
@param incremental indicate getting logs either incrementally or from the beginning,
                   when it is true or false.
@param fetchSize the number of lines to fetch
@return a list of logs. It can be empty if there are no new logs to be retrieved at that time.
@throws SQLException
@throws ClosedOrCancelledStatementException if statement has been cancelled or closed
jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java