Package gov.nasa.arc.mct.buffer.disk.internal

Examples of gov.nasa.arc.mct.buffer.disk.internal.PartitionTimestamps.merge()


    public void updateTimestamp(String feedID, long startTime, long endTime) {
        PartitionTimestamps ts = timestamps.get(feedID);
        if (ts == null) {
            timestamps.put(feedID, new PartitionTimestamps(startTime,endTime));
        } else {
            ts.merge(startTime,endTime);
        }
    }
   
    public void updateTimestamp(String feedID, PartitionTimestamps originalTs) {
        PartitionTimestamps ts = timestamps.get(feedID);
View Full Code Here


    public void updateTimestamp(String feedID, PartitionTimestamps originalTs) {
        PartitionTimestamps ts = timestamps.get(feedID);
        if (ts == null) {
            timestamps.put(feedID, originalTs);
        } else {
            ts.merge(originalTs);
        }
    }
   
    public void setTimeStamp(Map<String, PartitionTimestamps> ts) {
        timestamps.clear();
View Full Code Here

            PartitionTimestamps timeStamp = timestamps.get(feedID);
            if (timeStamp == null) {
                timestamps.put(feedID, newTS.clone());
                continue;
            }
            timeStamp.merge(newTS);
        }
    }
}
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.