public static TimeValuePair getEmptyTimeValuePair(TSDataType dataType) {
    switch (dataType) {
      case FLOAT:
        return new TimeValuePair(0, new TsFloat(0.0f));
      case INT32:
      case DATE:
        return new TimeValuePair(0, new TsInt(0));
      case INT64:
      case TIMESTAMP:
        return new TimeValuePair(0, new TsLong(0));
      case BOOLEAN:
        return new TimeValuePair(0, new TsBoolean(false));
      case DOUBLE:
        return new TimeValuePair(0, new TsDouble(0.0));
      case TEXT:
      case BLOB:
      case STRING:
        return new TimeValuePair(0, new TsBinary(new Binary("", TSFileConfig.STRING_CHARSET)));
      default:
        throw new UnsupportedOperationException("Unrecognized datatype: " + dataType);
    }
  }
get given data's current (time,value) pair.

@param data -batch data
@return -given data's (time,value) pair
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/TimeValuePairUtils.java