Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HdbTdbArchivingServers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango controls archiving
HdbTdbArchivingServers
Commits
826929bd
Commit
826929bd
authored
May 26, 2023
by
gwen-soleil
Browse files
Options
Downloads
Patches
Plain Diff
update dependency version
parent
05f9d326
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdbextractor/src/main/java/org/tango/archiving/server/extractor/TimeseriesAccess.java
+5
-5
5 additions, 5 deletions
...rg/tango/archiving/server/extractor/TimeseriesAccess.java
with
5 additions
and
5 deletions
hdbextractor/src/main/java/org/tango/archiving/server/extractor/TimeseriesAccess.java
+
5
−
5
View file @
826929bd
...
...
@@ -271,7 +271,7 @@ public class TimeseriesAccess implements IArchivingAccess {
// YYYY-MM-DD HH24:MI:SS
final
Timestamp
timestamp
=
getTimestamp
(
argin
[
1
]);
// String returned format: "Timestamp as long"; "read or writevalue"
fr
.
soleil
.
tango
.
archiving
.
event
.
select
.
AttributeValue
<?>
value
=
fetcherService
.
getClosestValue
(
attributeName
,
timestamp
);
fr
.
soleil
.
tango
.
archiving
.
event
.
select
.
AttributeValue
<?>
value
=
fetcherService
.
getClosestValue
(
attributeName
,
timestamp
,
true
);
String
result
=
value
.
getDataTime
().
getTime
()
+
";"
;
if
(
value
.
getValueR
()
!=
null
)
{
result
=
result
+
value
.
getValueR
()
+
";"
;
...
...
@@ -332,17 +332,17 @@ public class TimeseriesAccess implements IArchivingAccess {
final
double
[]
timeStamps
=
new
double
[
data
.
getAttributeValues
().
size
()];
final
String
[]
values
=
new
String
[
data
.
getAttributeValues
().
size
()];
int
i
=
0
;
for
(
fr
.
soleil
.
tango
.
archiving
.
event
.
select
.
AttributeValue
event
:
data
.
getAttributeValues
())
{
for
(
fr
.
soleil
.
tango
.
archiving
.
event
.
select
.
AttributeValue
<?>
event
:
data
.
getAttributeValues
())
{
timeStamps
[
i
]
=
event
.
getDataTime
().
getTime
();
switch
(
data
.
getAttributeConfig
().
getWriteType
())
{
case
AttrWriteType
.
_READ_WRITE
:
values
[
i
]
=
event
.
getValueR
()
+
";"
+
event
.
getValueW
();
break
;
case
AttrWriteType
.
_WRITE
:
values
[
i
]
=
event
.
getValueW
()
+
""
;
values
[
i
]
=
String
.
valueOf
(
event
.
getValueW
()
)
;
break
;
case
AttrWriteType
.
_READ
:
values
[
i
]
=
event
.
getValueR
()
+
""
;
values
[
i
]
=
String
.
valueOf
(
event
.
getValueR
()
)
;
break
;
}
i
++;
...
...
@@ -569,7 +569,7 @@ public class TimeseriesAccess implements IArchivingAccess {
final
int
writeType
=
dbData
.
getAttributeConfig
().
getWriteType
();
org
.
tango
.
server
.
attribute
.
AttributeValue
[]
readHistory
;
final
List
<
AttributeValueBucket
>
valuesFromDb
=
dbData
.
getBuckets
();
final
List
<
AttributeValueBucket
<?>
>
valuesFromDb
=
dbData
.
getBuckets
();
org
.
tango
.
server
.
attribute
.
AttributeValue
[]
writeHistory
=
null
;
readHistory
=
new
org
.
tango
.
server
.
attribute
.
AttributeValue
[
valuesFromDb
.
size
()];
if
(
writeType
==
AttrWriteType
.
_READ
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment