Module: IgniterLang::TemporalAccessRuntime::Capabilities

Defined in:
lib/igniter_lang/temporal_access_runtime.rb

Constant Summary collapse

HISTORY_READ =
"history_read"
BIHISTORY_READ =
"bihistory_read"
BITEMPORAL_READ =
BIHISTORY_READ

Class Method Summary collapse

Class Method Details

.axis_for(access_node, input_node) ⇒ Object



27
28
29
30
# File 'lib/igniter_lang/temporal_access_runtime.rb', line 27

def axis_for(access_node, input_node)
  axis = access_node["axis"] || input_node["axis"]
  axis == "single" ? "valid_time" : axis
end

.for_axis(axis) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'lib/igniter_lang/temporal_access_runtime.rb', line 16

def for_axis(axis)
  case axis
  when "single", "valid_time"
    [HISTORY_READ]
  when "bitemporal"
    [BIHISTORY_READ]
  else
    []
  end
end