Package org.marid.db.dao
Interface DaqWriter<T extends java.io.Serializable>
-
- All Known Subinterfaces:
NumericWriter
public interface DaqWriter<T extends java.io.Serializable> extends DaqReader<T>
- Author:
- Dmitry Ovchinnikov.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longdelete(long[] tags, long from, long to)Clears data within the time range for the given tags.longdelete(long from, long to)Clears data within the time range.java.util.Set<DataRecordKey>merge(java.util.List<DataRecord<T>> records, boolean insertOnly)Merges data.-
Methods inherited from interface org.marid.db.dao.DaqMXBean
getRecordCount
-
Methods inherited from interface org.marid.db.dao.DaqReader
fetchRecord, fetchRecords, hash, tagCount, tags
-
-
-
-
Method Detail
-
delete
long delete(long from, long to)Clears data within the time range.- Parameters:
from- Lower bound (inclusive).to- Upper bound (exclusive).- Returns:
- Count of removed records.
-
delete
long delete(long[] tags, long from, long to)Clears data within the time range for the given tags.- Parameters:
tags- Tags.from- Lower bound (inclusive).to- Upper bound (exclusive).- Returns:
- Count of removed records.
-
merge
java.util.Set<DataRecordKey> merge(java.util.List<DataRecord<T>> records, boolean insertOnly)
Merges data.- Parameters:
records- Data records.insertOnly- Insert-only flag (if true, the values keep unchanged on key equality).- Returns:
- Merge result.
-
-