📄 pqueue.mal
字号:
#line 35 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"module pqueue;command init(a:bat[:void,:any_1],maxsize:int):bat[:oid,:any_1] address PQinitcomment "Creates an empty pqueue of bat a's tailtype with maximum size maxsize";#line 87 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 84 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx" #line 63 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"pattern topreplace_min(h:bat[:oid,:any_1], id:oid, value:any_1) address PQtopreplace_anymincomment "Replaces top element with input and updates min-pqueue";pattern enqueue_min(h:bat[:oid,:any_1], id:oid, value:any_1) address PQenqueue_anymincomment "Inserts element (oid,any) in the min-pqueue";command dequeue_min(h:bat[:oid,:any_1]) address PQdequeue_anymincomment "Removes top element of the min-pqueue and updates it";command topn_min(t:bat[:oid,:any_1], n:int) :bat[:oid,:any_1] address PQtopn_anymincomment "Return the topn elements of the bat t using a min-pqueue";command topn_min(t:bat[:void,:any_1], n:int) :bat[:oid,:any_1] address PQtopn_voidanymincomment "Return the topn elements of the bat t using a min-pqueue";#line 84 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx" #line 63 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"pattern topreplace_max(h:bat[:oid,:any_1], id:oid, value:any_1) address PQtopreplace_anymaxcomment "Replaces top element with input and updates max-pqueue";pattern enqueue_max(h:bat[:oid,:any_1], id:oid, value:any_1) address PQenqueue_anymaxcomment "Inserts element (oid,any) in the max-pqueue";command dequeue_max(h:bat[:oid,:any_1]) address PQdequeue_anymaxcomment "Removes top element of the max-pqueue and updates it";command topn_max(t:bat[:oid,:any_1], n:int) :bat[:oid,:any_1] address PQtopn_anymaxcomment "Return the topn elements of the bat t using a max-pqueue";command topn_max(t:bat[:void,:any_1], n:int) :bat[:oid,:any_1] address PQtopn_voidanymaxcomment "Return the topn elements of the bat t using a max-pqueue";#line 85 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 87 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 93 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 90 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx" #line 42 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"command enqueue_min(h:bat[:oid,:chr], id:oid, value:chr) address PQenqueue_chrmincomment "Inserts element (oid,chr) in the min-pqueue";command topreplace_min(h:bat[:oid,:chr], id:oid, value:chr) address PQtopreplace_chrmincomment "Replaces top element with input and updates min-pqueue";command dequeue_min(h:bat[:oid,:chr]) address PQdequeue_chrmincomment "Removes top element of the min-pqueue and updates it";command topn_min(t:bat[:oid,:chr], n:int) :bat[:oid,:chr] address PQtopn_chrmincomment "Return the topn elements of the bat t using a min-pqueue";command topn_min(t:bat[:void,:chr],n:int) :bat[:oid,:chr] address PQtopn_voidchrmincomment "Return the topn elements of the bat t using a min-pqueue";#line 90 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx" #line 42 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"command enqueue_max(h:bat[:oid,:chr], id:oid, value:chr) address PQenqueue_chrmaxcomment "Inserts element (oid,chr) in the max-pqueue";command topreplace_max(h:bat[:oid,:chr], id:oid, value:chr) address PQtopreplace_chrmaxcomment "Replaces top element with input and updates max-pqueue";command dequeue_max(h:bat[:oid,:chr]) address PQdequeue_chrmaxcomment "Removes top element of the max-pqueue and updates it";command topn_max(t:bat[:oid,:chr], n:int) :bat[:oid,:chr] address PQtopn_chrmaxcomment "Return the topn elements of the bat t using a max-pqueue";command topn_max(t:bat[:void,:chr],n:int) :bat[:oid,:chr] address PQtopn_voidchrmaxcomment "Return the topn elements of the bat t using a max-pqueue";#line 91 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 93 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 90 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx" #line 42 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"command enqueue_min(h:bat[:oid,:sht], id:oid, value:sht) address PQenqueue_shtmincomment "Inserts element (oid,sht) in the min-pqueue";command topreplace_min(h:bat[:oid,:sht], id:oid, value:sht) address PQtopreplace_shtmincomment "Replaces top element with input and updates min-pqueue";command dequeue_min(h:bat[:oid,:sht]) address PQdequeue_shtmincomment "Removes top element of the min-pqueue and updates it";command topn_min(t:bat[:oid,:sht], n:int) :bat[:oid,:sht] address PQtopn_shtmincomment "Return the topn elements of the bat t using a min-pqueue";command topn_min(t:bat[:void,:sht],n:int) :bat[:oid,:sht] address PQtopn_voidshtmincomment "Return the topn elements of the bat t using a min-pqueue";#line 90 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx" #line 42 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"command enqueue_max(h:bat[:oid,:sht], id:oid, value:sht) address PQenqueue_shtmaxcomment "Inserts element (oid,sht) in the max-pqueue";command topreplace_max(h:bat[:oid,:sht], id:oid, value:sht) address PQtopreplace_shtmaxcomment "Replaces top element with input and updates max-pqueue";command dequeue_max(h:bat[:oid,:sht]) address PQdequeue_shtmaxcomment "Removes top element of the max-pqueue and updates it";command topn_max(t:bat[:oid,:sht], n:int) :bat[:oid,:sht] address PQtopn_shtmaxcomment "Return the topn elements of the bat t using a max-pqueue";command topn_max(t:bat[:void,:sht],n:int) :bat[:oid,:sht] address PQtopn_voidshtmaxcomment "Return the topn elements of the bat t using a max-pqueue";#line 91 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 95 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 90 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx" #line 42 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"command enqueue_min(h:bat[:oid,:int], id:oid, value:int) address PQenqueue_intmincomment "Inserts element (oid,int) in the min-pqueue";command topreplace_min(h:bat[:oid,:int], id:oid, value:int) address PQtopreplace_intmincomment "Replaces top element with input and updates min-pqueue";command dequeue_min(h:bat[:oid,:int]) address PQdequeue_intmincomment "Removes top element of the min-pqueue and updates it";command topn_min(t:bat[:oid,:int], n:int) :bat[:oid,:int] address PQtopn_intmincomment "Return the topn elements of the bat t using a min-pqueue";command topn_min(t:bat[:void,:int],n:int) :bat[:oid,:int] address PQtopn_voidintmincomment "Return the topn elements of the bat t using a min-pqueue";#line 90 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx" #line 42 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"command enqueue_max(h:bat[:oid,:int], id:oid, value:int) address PQenqueue_intmaxcomment "Inserts element (oid,int) in the max-pqueue";command topreplace_max(h:bat[:oid,:int], id:oid, value:int) address PQtopreplace_intmaxcomment "Replaces top element with input and updates max-pqueue";command dequeue_max(h:bat[:oid,:int]) address PQdequeue_intmaxcomment "Removes top element of the max-pqueue and updates it";command topn_max(t:bat[:oid,:int], n:int) :bat[:oid,:int] address PQtopn_intmaxcomment "Return the topn elements of the bat t using a max-pqueue";command topn_max(t:bat[:void,:int],n:int) :bat[:oid,:int] address PQtopn_voidintmaxcomment "Return the topn elements of the bat t using a max-pqueue";#line 91 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 96 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"#line 90 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx" #line 42 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/kernel/pqueue.mx"command enqueue_min(h:bat[:oid,:oid], id:oid, value:oid) address PQenqueue_oidmincomment "Inserts element (oid,oid) in the min-pqueue";command topreplace_min(h:bat[:oid,:oid], id:oid, value:oid) address PQtopreplace_oidmincomment "Replaces top element with input and updates min-pqueue";command dequeue_min(h:bat[:oid,:oid]) address PQdequeue_oidmincomment "Removes top element of the min-pqueue and updates it";command topn_min(t:bat[:oid,:oid], n:int) :bat[:oid,:oid] address PQtopn_oidmincomment "Return the topn elements of the bat t using a min-pqueue";command topn_min(t:bat[:void,:oid],n:int) :bat[:oid,:oid] address PQtopn_voidoidmincomment "Return the topn elements of the bat t using a min-pqueue";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -