public int getValueIndex(int index) {
    if (index >= rowCount) {
      throw new ArrayIndexOutOfBoundsException(index);
    }
    if (indices == null) {
      return index;
    }

    int arrayIndex = index / ARRAY_SIZE;
    int elementIndex = index % ARRAY_SIZE;
    return indices.get(arrayIndex)[elementIndex];
  }
Get the row index value in index column.

@param index row index
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java