@Override
  public void close() throws IOException {
    if (Objects.nonNull(fileChannel) && fileChannel.isOpen()) {
      fileChannel.force(true);
      fileChannel.close();
      fileChannel = null;
    }
  }
@param byteBuffer the data of record to be persisted
@param position the target position to store the record in tagFile
@return beginning position of the record in tagFile
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/tag/TagLogFile.java