Sri,

Reading later posts, I suspect you actually want to store lookup structures in 
the DB and get them via xquery calls. A map() is a special structure that is 
for holding a fast lookup strucutre _in memory_ during long-running processing, 
or perhaps caching it in a "server field" (see MarkLogic docs for server field 
functions).

Can you tell us what you need to accomplish so we can help you pick the right 
tool for the job? It may also help us tell you which way to use maps.

Yours,
Damon

--
Damon Feldman
Sr. Principal Consultant, MarkLogic

________________________________
From: [email protected] 
[[email protected]] On Behalf Of sini narayanan 
[[email protected]]
Sent: Tuesday, November 20, 2012 12:18 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Xquery - Maps

Hi,

I have a map to be created as below:

let $map := map:map()
let $key := map:put($map, "1", "hello")
let $key := map:put($map, "2", "world")
return $map

How do I store this as a file in MarkLogic DB?
What would be the format in which maps are saved ?

I want to access this map from an xqy module which would pass the key as input 
to the map file to get the output.
Please advice.

Thanks
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to