public void push(long value) {
    if (isFull()) {
      resize(data.length * 2);
    }
    data[tail] = value;
    tail = (tail + 1) % data.length;
    size++;
  }
push value into the back of queue.

@param value value to push
library-udf/src/main/java/org/apache/iotdb/library/util/LongCircularQueue.java