Example #1
0
 public BlockStoreResponse processQuery(BlockStoreQuery query)
 {
     BlockStoreResponse bsr = new BlockStoreResponse();
     bsr.BlockResponses = new List<BlockStoreBlockResponse>();
     foreach(int blockID in query.BlockIDs) bsr.BlockResponses.Add(processBlockQuery(query.BlockQuery, blockID));
     return bsr;
 }
Example #2
0
        public BlockStoreResponse processQuery(BlockStoreQuery query)
        {
            BlockStoreResponse bsr = new BlockStoreResponse();

            bsr.BlockResponses = new List <BlockStoreBlockResponse>();
            foreach (int blockID in query.BlockIDs)
            {
                bsr.BlockResponses.Add(processBlockQuery(query.BlockQuery, blockID));
            }
            return(bsr);
        }
Example #3
0
        // querying for average TOFs uses different code - this is because of the need to keep
        // memory consumption under control, and the urge to re-use the old averaging code.
        // The result is that the averaging must be done at the TOFChannelSet level.

        public string processJSONQueryAverage(string jsonQuery)
        {
            BlockStoreQuery query = BsonSerializer.Deserialize <BlockStoreQuery>(jsonQuery);

            return(processBlockQueryAverage(query.BlockQuery, query.BlockIDs).ToJson <BlockStoreBlockResponse>());
        }
Example #4
0
        public string processJSONQuery(string jsonQuery)
        {
            BlockStoreQuery query = BsonSerializer.Deserialize <BlockStoreQuery>(jsonQuery);

            return(processQuery(query).ToJson <BlockStoreResponse>());
        }