Mercurial > hg > MonetDB-extend
view regexp/regexp.mal @ 15:59bbfa0096b3
Added a tutorial for creating a FILTER FUNCTION.
author | Sjoerd Mullender <sjoerd@acm.org> |
---|---|
date | Mon, 22 Jan 2018 17:56:06 +0100 (2018-01-22) |
parents | |
children | e799d117c5b1 |
line wrap: on
line source
module regexp; # variant without flags argument command rematch(val:str, pat:str) :bit address regexpmatch comment "Return true when the value 'val' matches the regular expression 'pat'"; command rematchselect(val:bat[:str], cand:bat[:oid], pat:str, anti:bit):bat[:oid] address regexpmatchselect comment "Return the list of matches in 'val' that match the regular expression 'pat'"; command rematchjoin(val:bat[:str], pat:bat[:str], sl:bat[:oid], sr:bat[:oid], nil_matches:bit, estimate:lng)(lr:bat[:oid],rr:bat[:oid]) address regexpmatchjoin comment "Return the matching pairs from the 'val' and 'pat' columns"; # variant with flags argument command rematch(val:str, pat:str, flags:str) :bit address regexpmatchf comment "Return true when the value 'val' matches the regular expression 'pat'"; command rematchselect(val:bat[:str], s:bat[:oid], pat:str, flags:str, anti:bit):bat[:oid] address regexpmatchfselect comment "Return the list of matches in 'val' that match the regular expression 'pat'"; command rematchjoin(val:bat[:str], pat:bat[:str], flags:str, sl:bat[:oid], sr:bat[:oid], nil_matches:bit, estimate:lng)(lr:bat[:oid],rr:bat[:oid]) address regexpmatchfjoin comment "Return the matching pairs from the 'val' and 'pat' columns";