RevealElem 函数

RevealElem 使给定时间戳记上的元素可用于扫描。它的效果与 HideElem 相反。

语法

RevealElem(ts     TimeSeries, 
          tstamp datetime year to fraction(5)) 
returns TimeSeries;

RevealElem(ts        TimeSeries, 
          set_stamps multiset(datetime year to fraction(5))) 
returns TimeSeries;
ts
要对其执行操作的时间系列。
tstamp
要变为扫描可视的时间戳记。
set_stamps
要变为扫描可视的时间戳记多个集。

返回结果

修改的时间系列。

示例

以下示例会隐藏 GBase 8s 时间系列中 2011-01-03 的元素,然后显示它:
select HideElem(stock_data, '2011-01-03 00:00:00.00000')
   from daily_stocks
   where stock_name = 'GBase';

select RevealElem(stock_data, '2011-01-03 00:00:00.00000')
   from daily_stocks
   where stock_name = 'GBase';