public long getHead() {
    if (isEmpty()) {
      throw new IllegalArgumentException("Error: Queue is Empty!");
    }
    return data[head];
  }
judge if circular queue is empty.

@return if empty, return true; else return false
library-udf/src/main/java/org/apache/iotdb/library/util/LongCircularQueue.java