public static Object createValueColumnOfDataType(
      TSDataType dataType, TsTableColumnCategory columnCategory, int rowNum) {
    Object valueColumn;
    switch (dataType) {
      case INT32:
        valueColumn = new int[rowNum];
        break;
      case INT64:
      case TIMESTAMP:
        valueColumn = new long[rowNum];
        break;
      case FLOAT:
        valueColumn = new float[rowNum];
        break;
      case DOUBLE:
        valueColumn = new double[rowNum];
        break;
      case BOOLEAN:
        valueColumn = new boolean[rowNum];
        break;
      case TEXT:
      case STRING:
      case BLOB:
        valueColumn = new Binary[rowNum];
        break;
      case DATE:
        valueColumn = new LocalDate[rowNum];
        break;
      default:
        throw new UnSupportedDataTypeException(
            String.format("Data type %s is not supported.", dataType));
    }
    return valueColumn;
  }
Check whether the time falls in TTL.

@return whether the given time falls in ttl
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/CommonUtils.java