Compound API Calls

Intent

Add new public API calls that make it easier for user to perform compound operations.

These operations are NOT atomic!!

 

Implementation

  • fetch(key, set<record>[, timestamp]) → map<record, set<value>>

  • get(key, set<record>[, timestamp]) → map<record, value>

  • fetch(set<key>, record[, timestamp]) → map<key, value>>

  • get(set<key>, record[, timestamp]) → map<key, value>

  • fetch(set<key>, set<record>[, timestamp]) → map<record, map<key, set<value>>>

  • get(set<key>, set<record>[, timestamp]) → map<record, map<key, value>>

  • add(key, value, set<record>) → boolean

  • remove(key, value, set<record>) → boolean (?? should this return false if one of the removes fails?)

  • set(key, value, set<record>) → boolean

  • audit(set<record>) → map<record, map<timestamp, string>> ???

  • clear(set<key>, record) → void [maybe boolean??? so user knows clear was successful[

  • clear(key, set<record) → void

  • clear(set<key>, set<record>) → void

  • describe(set<record>[, timestamp]) → map<record, set<string>>)

  • link(key, source, set<destination>) → boolean

  • ping(set<record>) → map<record, boolean>

  • revert(key, set<record>) → boolean

  • revert(set<key>, record) → boolean

  • revert<set<key>, set<record>) → boolean

  • find??? how do i allow the user to imput multiple criterion??

  • find???