marklogic中的存储元素是什么? [英] What are in memory elements in marklogic?
问题描述
我有几个文档,其中某些元素上的xdmp:node-replace()
无效.还有一些其他文档集几乎与有问题的文档集相似,但是xdmp:node-replace
可以很好地处理它们.尝试了所有可能出错但无济于事的可能性.阅读一些xdmp:node-replace
函数在'内存元素'中不起作用的地方.
I have couple of documents on which xdmp:node-replace()
over certain elements doesnot work. There are some other set of documents which are almost similar to the ones that has problem but xdmp:node-replace
works perfectly fine on them. Tried all possibilities that could have gone wrong but in vain. Read some where that xdmp:node-replace
function does not work on 'in memory elements'.
因此,为了验证问题是否出在"内存元素"中,我想知道具体是什么.
So in order to verify whether the issue is with 'in memory elements', I want to know what exactly it is.
对此有任何帮助
推荐答案
查询中构造的任何内容都是内存中元素.例如,此XQuery产生一个内存中元素:
Anything constructed within a query is an in-memory element. For example this XQuery yields an in-memory element:
<test/>
某些函数调用还会返回内存中的元素:xdmp:unquote
是一个明显的示例.并非来自当前数据库的任何节点都将被视为内存中节点.
Some function calls also return in-memory elements: xdmp:unquote
is an obvious example. Any node that doesn't come from the current database will be treated as an in-memory node.
此查询产生一个数据库元素(如果存在),可以使用xdmp:node-replace
进行修改:
This query yields a database element (if it exists), which could be modified using xdmp:node-replace
:
doc('fubar')/test
这是一个典型的内存更新错误:
This is a typical in-memory update error:
xdmp:node-replace(<x/>, <y/>)
对于MarkLogic 6.0-1.1,错误代码为XDMP-UPCONSTNODES
.
With MarkLogic 6.0-1.1, the error code is XDMP-UPCONSTNODES
.
这篇关于marklogic中的存储元素是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!