using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZKLT.Hadoop.Model
{
///
/// 命令函数
///
public class HDP_CommandAction
{
///
/// 当前日期
///
public const string DATENOW = "DATE_NOW()";
///
/// 唯一码
///
public const string UUID = "UUID()";
///
/// 转换命令
///
/// 函数
/// 参数
/// 命令
public static object Convert(string action, Dictionary param)
{
if (action == DATENOW)
{
return DateTime.Now;
}
else if (action == UUID)
{
return Guid.NewGuid().ToString();
}
else {
return action;
}
}
}
}