public interface IMassenTableHandler
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
addByteRows(byte[] b)
Add multiple measurements as a byte array, existing records with same sampling time and series id are skipped
|
java.lang.Boolean |
addRow(java.lang.Integer id,
java.util.Date von,
java.lang.Double wert,
java.lang.Integer status)
Add one row to a series.
|
java.util.Vector |
getMatrix(java.util.Vector ids,
java.util.Vector timeFilter,
java.util.Vector statusFilter,
java.lang.Boolean withStatus)
Get Matrix of series values
|
java.util.Vector |
getRows(java.lang.Integer id,
java.util.Vector timeFilter,
java.util.Vector statusFilter)
Get rows of a series by status and time filter definition
|
java.lang.Boolean |
importById(java.util.Hashtable values)
Import many measurements grouped by series identifier
|
java.lang.Boolean |
importByTime(java.util.Hashtable values)
Import many measurements grouped by time
|
java.lang.Boolean |
importFlat(java.lang.Integer Id,
java.util.Vector rows,
boolean shortCols)
Import a Vector of time value pairs into one series
|
java.lang.Boolean |
removeAllRows(java.lang.Integer id)
Remove all measurement values
|
java.lang.Boolean |
removeRows(java.lang.Integer id,
java.util.Vector vonDates)
Remove many rows of a series by sampling date.
|
java.lang.Boolean |
removeRowsByInterval(java.lang.Integer id,
java.util.Date startDate,
java.util.Date endDate)
Remove many rows of a series by date interval.
|
java.lang.Boolean |
updateRow(java.lang.Integer id,
java.util.Date old_von,
java.lang.Integer statId,
java.lang.Double wert,
java.util.Date new_von)
Update one row of a series.
|
java.lang.Boolean |
updateRows(java.lang.Integer id,
java.util.Vector vonDates,
java.lang.Integer statId)
Update status flag of several rows of a series.
|
java.lang.Boolean |
upsertByteRows(byte[] b)
Add multiple measurements as a byte array, existing records with same sampling time and series id are updated
|
java.lang.Boolean addByteRows(byte[] b) throws org.apache.xmlrpc.XmlRpcException
b
- byte array composed of
org.apache.xmlrpc.XmlRpcException
java.lang.Boolean upsertByteRows(byte[] b) throws org.apache.xmlrpc.XmlRpcException
b
- byte array composed of
org.apache.xmlrpc.XmlRpcException
java.lang.Boolean addRow(java.lang.Integer id, java.util.Date von, java.lang.Double wert, java.lang.Integer status) throws org.apache.xmlrpc.XmlRpcException
id
- series identifiervon
- sampling timewert
- measurement valuestatus
- quality tag of measurement valueorg.apache.xmlrpc.XmlRpcException
ILookUpTableHandler.getStatus()
java.lang.Boolean updateRow(java.lang.Integer id, java.util.Date old_von, java.lang.Integer statId, java.lang.Double wert, java.util.Date new_von) throws org.apache.xmlrpc.XmlRpcException
id
- series identifierold_von
- old sampling timestatId
- status quality tag of measurement valuewert
- measurement valuenew_von
- new sampling timeorg.apache.xmlrpc.XmlRpcException
ILookUpTableHandler.getStatus()
java.lang.Boolean updateRows(java.lang.Integer id, java.util.Vector vonDates, java.lang.Integer statId) throws org.apache.xmlrpc.XmlRpcException
id
- series identifiervonDates
- sampling timesstatId
- status quality tag of measurement valuesorg.apache.xmlrpc.XmlRpcException
ILookUpTableHandler.getStatus()
java.lang.Boolean removeRows(java.lang.Integer id, java.util.Vector vonDates) throws org.apache.xmlrpc.XmlRpcException
id
- series idvonDates
- Vector of Dateorg.apache.xmlrpc.XmlRpcException
java.lang.Boolean removeRowsByInterval(java.lang.Integer id, java.util.Date startDate, java.util.Date endDate) throws org.apache.xmlrpc.XmlRpcException
id
- series idstartDate
- Date of first measurementendDate
- Date of last measurementorg.apache.xmlrpc.XmlRpcException
java.util.Vector getRows(java.lang.Integer id, java.util.Vector timeFilter, java.util.Vector statusFilter) throws org.apache.xmlrpc.XmlRpcException
id
- timeFilter
- vector of values
statusFilter
- vector of status values as int[0,3] sampling time in number of milliseconds since January 1, 1970, 00:00:00 GM /1000 as int
[4,8] value as float
[9] status as short
org.apache.xmlrpc.XmlRpcException
ILookUpTableHandler.getStatus()
java.lang.Boolean importById(java.util.Hashtable values) throws org.apache.xmlrpc.XmlRpcException
values
- hashtable with series identifier as key and Array of Strings as values. A value is composed of sampling time, quality flag and measurement value in the following format: DD.MM.YYYY hh:mm:ss;##;####.###
Sample XML Request:
<?xml version="1.0"?>
<methodCall>
<methodName>MassenTableHandler.importById</methodName>
<params>
<param>
<value>
<struct>
<member><name>17845</name>
<value><array><data>
<value>17.06.2002 11:10:00;00;12.0</value>
<value>01.03.2003 12:00:00;0;13766.7941930617</value>
<value>01.03.2003 12:05:00;7;5634.50514870746</value>
<value>01.03.2003 12:10:00;6;16467.3786470724</value>
</data></array></value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
org.apache.xmlrpc.XmlRpcException
java.lang.Boolean importByTime(java.util.Hashtable values) throws org.apache.xmlrpc.XmlRpcException
values
- hashtable with sampling time as as key and array of Strings as values,
a key is a String value of sampling time formated by DD.MM.YYYY hh:mm:ss.a value is composed of series id, quality flag and measurement value separated by semicolon
Sample XML Request:
<?xml version="1.0"?>
<methodCall>
<methodName>MassenTableHandler.importByTime</methodName>
<params>
<param><value><struct>
<member><name>17.06.2002 11:10:00</name>
<value><array><data>
<value>14478;00;0.00</value>
<value>14479;00;0.00</value>
<value>14480;00;0.00</value>
<value>2701;00;0.00</value>
</data></array>
</value>
</member>
<member><name>17.06.2002 11:20:00</name>
<value><array><data>
<value>14478;00;12.88</value>
<value>14479;00;13.73</value>
<value>14480;00;11.78</value>
<value>14481;00;9.98</value>
<value>2701;00;39.49</value>
</data></array></value>
</member>
</struct></value></param>
</params>
</methodCall>
org.apache.xmlrpc.XmlRpcException
java.lang.Boolean removeAllRows(java.lang.Integer id) throws org.apache.xmlrpc.XmlRpcException
id
- series identifierorg.apache.xmlrpc.XmlRpcException
java.util.Vector getMatrix(java.util.Vector ids, java.util.Vector timeFilter, java.util.Vector statusFilter, java.lang.Boolean withStatus) throws org.apache.xmlrpc.XmlRpcException
ids
- vector of series identifiers as inttimeFilter
- vector of values
statusFilter
- vector of status values as intwithStatus
- flag to export status informationorg.apache.xmlrpc.XmlRpcException
java.lang.Boolean importFlat(java.lang.Integer Id, java.util.Vector rows, boolean shortCols) throws org.apache.xmlrpc.XmlRpcException
Id
- series idrows
- vector of StringsshortCols
- format flag; true:short vector row format -> [timestamp;value] as [DD.MM.YYYY hh:mm:ss;%f]
false:long vector row format -> [timestamp;value;status] as [DD.MM.YYYY hh:mm:ss;%f;%d]org.apache.xmlrpc.XmlRpcException