Package gov.nasa.arc.mct.buffer.util

Examples of gov.nasa.arc.mct.buffer.util.ElapsedTimer.startInterval()


    @Override
    public Map<String, SortedMap<Long, Map<String, String>>> getData(Set<String> feedIDs, TimeUnit timeUnit, long startTime,
            long endTime) {
        final ElapsedTimer timer = new ElapsedTimer();
        timer.startInterval();
       
        Map<String, TreeMap<Long, Map<String, String>>> cachedData = getCachedData();
       
        Map<String, SortedMap<Long, Map<String, String>>> returnedData = new HashMap<String, SortedMap<Long, Map<String, String>>>();
View Full Code Here


    }

    @Override
    public Map<String, PartitionTimestamps> putData(Map<String, Map<Long, Map<String, String>>> value, TimeUnit timeUnit) {
        final ElapsedTimer timer = new ElapsedTimer();
        timer.startInterval();
       
        Map<String, PartitionTimestamps> timestamps = new HashMap<String, PartitionTimestamps>();
        Map<String, TreeMap<Long, Map<String, String>>> cachedData = getCachedData();

        for (Entry<String, Map<Long, Map<String, String>>> entry : value.entrySet()) {
View Full Code Here

    }
   
    @Override
    public void putData(Map<String, Map<Long, Map<String, String>>> value, TimeUnit timeUnit, MetaDataBuffer metadata, int metadataIndex) {
        final ElapsedTimer timer = new ElapsedTimer();
        timer.startInterval();
       
        Map<String, TreeMap<Long, Map<String, String>>> cachedData = getCachedData();

        for (Entry<String, Map<Long, Map<String, String>>> entry : value.entrySet()) {
            String feedID = entry.getKey();
View Full Code Here

       
        feedIDs = new HashSet<String>(feedIDs);
        int feedSize = feedIDs.size();
        Map<String, List<Map<String, String>>> returnedData = new HashMap<String, List<Map<String,String>>>();
        for (DataProvider dataRetrieval : dataProviders) {
            timer.startInterval();

            Map<String, SortedMap<Long, Map<String, String>>> obtainedValues = dataRetrieval
                    .getData(feedIDs, startTime, endTime, timeUnit);
           
            for (Entry<String, SortedMap<Long, Map<String, String>>> entry: obtainedValues.entrySet()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.