Skip to content

lib-xquery 库参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34794110980/FIN+5.3.1+lib-xquery 中文整理基于 FIN 5.3.1

导读: XQuery 支持模块

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​

  • lib
  • meta
  • funcs
  • views
  • def
  • xq(opts: null)
  • xqDefine(xq, name, val)
  • xqEval(xq, expr)
  • xqExecute(xq)
  • xqFindAll(xq, expr)
  • xqFlatMap(xq, expr)
  • xqHisRead(xq, span, opts: null)
  • xqHisRollup(xq, fold, interval)
  • xqHisRollupAuto(xq, interval: null)
  • xqMap(xq, expr)
  • xqPivot(xq, shape)
  • xqProjs(xq, names)
  • xqReadAll(xq, filter, opts: null)
  • xqReadAllList(xq, filter, opts: null)
  • xqReadByIds(xq, ids)
  • xqReadByIdsList(xq, ids)
  • xqTimeout(xq, val)
  • xqTrace(xq)
  • xqUseReplicas(xq, val: true)
    • src

概述(中译) ​

XQuery 支持模块


API 正文(英文) ​

funcs ​

xqConstruct new XQuery instance
xqDefineDefine a variable available to subsequent Axon expressions
xqEvalEvaluate an Axon expr in each project - see XQuery.eval
xqExecuteExecute the XQuery and return results
xqFindAllFilter the previous step using an Axon expr - see XQuery.findAll
xqFlatMapMap the previous step to zero or more Dicts using an Axon expr - see XQuery.flatMap
xqHisReadRead point history data - see XQuery.hisRead
xqHisRollupRollup history data - see XQuery.hisRollup
xqHisRollupAutoRollup history data - see XQuery.hisRollupAuto
xqMapMap the previous step using an Axon expr - see XQuery.map
xqPivotTransform previous step into pivot table - see XQuery.pivot Note
xqProjsRestrict query to given project name(s) - see XQuery.projs
xqReadAllRead recs by filter - see XQuery.readAll
xqReadAllListRead recs by filter - see XQuery.readAllList
xqReadByIdsRead recs by ids - see XQuery.readByIds
xqReadByIdsListRead recs by ids - see XQuery.readByIds
xqTimeoutSet timeout for network calls to remote nodes - see XQuery.timeout
xqTraceExecute the XQuery and return debug tracing
xqUseReplicasRoute to replicas instead of master - see XQuery.useReplicas

views ​

xquerySettingsSettings for the XQuery system module


def ​

func:xq ​

xq(opts: null) ​

Construct new XQuery instance. Options:

  • timeout: timeout to use for network calls to remote nodes
  • useReplicas: marker tag to enable replica reads

meta ​

deffunc:xq
isfunc
liblib:xquery
namexq

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqDefine ​

xqDefine(xq, name, val) ​

Define a variable available to subsequent Axon expressions. This provides an easy way to marshall data across the cluster without encoding data to an Axon expression. See XQuery.define.


meta ​

deffunc:xqDefine
isfunc
liblib:xquery
namexqDefine

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqEval ​

xqEval(xq, expr) ​

Evaluate an Axon expr in each project - see XQuery.eval


meta ​

deffunc:xqEval
isfunc
liblib:xquery
namexqEval

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqExecute ​

xqExecute(xq) ​

Execute the XQuery and return results


meta ​

deffunc:xqExecute
isfunc
liblib:xquery
namexqExecute

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqFindAll ​

xqFindAll(xq, expr) ​

Filter the previous step using an Axon expr - see XQuery.findAll


meta ​

deffunc:xqFindAll
isfunc
liblib:xquery
namexqFindAll

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqFlatMap ​

xqFlatMap(xq, expr) ​

Map the previous step to zero or more Dicts using an Axon expr - see XQuery.flatMap


meta ​

deffunc:xqFlatMap
isfunc
liblib:xquery
namexqFlatMap

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqHisRead ​

xqHisRead(xq, span, opts: null) ​

Read point history data - see XQuery.hisRead


meta ​

deffunc:xqHisRead
isfunc
liblib:xquery
namexqHisRead

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqHisRollup ​

xqHisRollup(xq, fold, interval) ​

Rollup history data - see XQuery.hisRollup


meta ​

deffunc:xqHisRollup
isfunc
liblib:xquery
namexqHisRollup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqHisRollupAuto ​

xqHisRollupAuto(xq, interval: null) ​

Rollup history data - see XQuery.hisRollupAuto


meta ​

deffunc:xqHisRollupAuto
isfunc
liblib:xquery
namexqHisRollupAuto

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqMap ​

xqMap(xq, expr) ​

Map the previous step using an Axon expr - see XQuery.map


meta ​

deffunc:xqMap
isfunc
liblib:xquery
namexqMap

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqPivot ​

xqPivot(xq, shape) ​

Transform previous step into pivot table - see XQuery.pivot Note: column names and meta are subject to change.


meta ​

deffunc:xqPivot
isfunc
liblib:xquery
namexqPivot

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqProjs ​

xqProjs(xq, names) ​

Restrict query to given project name(s) - see XQuery.projs. Also see navProjNames() to restrict a query to navigable projects.


meta ​

deffunc:xqProjs
isfunc
liblib:xquery
namexqProjs

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqReadAll ​

xqReadAll(xq, filter, opts: null) ​

Read recs by filter - see XQuery.readAll


meta ​

deffunc:xqReadAll
isfunc
liblib:xquery
namexqReadAll

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqReadAllList ​

xqReadAllList(xq, filter, opts: null) ​

Read recs by filter - see XQuery.readAllList


meta ​

deffunc:xqReadAllList
isfunc
liblib:xquery
namexqReadAllList

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqReadByIds ​

xqReadByIds(xq, ids) ​

Read recs by ids - see XQuery.readByIds


meta ​

deffunc:xqReadByIds
isfunc
liblib:xquery
namexqReadByIds

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqReadByIdsList ​

xqReadByIdsList(xq, ids) ​

Read recs by ids - see XQuery.readByIds


meta ​

deffunc:xqReadByIdsList
isfunc
liblib:xquery
namexqReadByIdsList

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqTimeout ​

xqTimeout(xq, val) ​

Set timeout for network calls to remote nodes - see XQuery.timeout.


meta ​

deffunc:xqTimeout
isfunc
liblib:xquery
namexqTimeout

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqTrace ​

xqTrace(xq) ​

Execute the XQuery and return debug tracing


meta ​

deffunc:xqTrace
isfunc
liblib:xquery
namexqTrace

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:xqUseReplicas ​

xqUseReplicas(xq, val: true) ​

Route to replicas instead of master - see XQuery.useReplicas.


meta ​

deffunc:xqUseReplicas
isfunc
liblib:xquery
namexqUseReplicas

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

view:xquerySettings ​

Settings for the XQuery system module


meta ​

appNamesettings
defview:xquerySettings
disKeyui::xquery
iconview
isview
liblib:xquery
su✓

supertypes ​

featureFeature namespace of definitions formatted as feature:name
viewFresco UI view

src ​

view:   {inherit:"form"}
submit: {action:"hostCommit"}
data:   {expr:"hostSettings(\"xquery\")"}