Skip to content
Snippets Groups Projects
Commit f538d0d9 authored by cramakri's avatar cramakri
Browse files

LMS-1584 Added methods for working with MDDoubleArrays on the feature values dto.

SVN: 16650
parent f26fd857
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,8 @@ package ch.systemsx.cisd.openbis.dss.etl.dataaccess; ...@@ -19,6 +19,8 @@ package ch.systemsx.cisd.openbis.dss.etl.dataaccess;
import net.lemnik.eodsql.AutoGeneratedKeys; import net.lemnik.eodsql.AutoGeneratedKeys;
import net.lemnik.eodsql.ResultColumn; import net.lemnik.eodsql.ResultColumn;
import ch.systemsx.cisd.base.convert.NativeTaggedArray;
import ch.systemsx.cisd.base.mdarray.MDDoubleArray;
import ch.systemsx.cisd.common.utilities.AbstractHashable; import ch.systemsx.cisd.common.utilities.AbstractHashable;
/** /**
...@@ -56,6 +58,11 @@ public class ImgFeatureValuesDTO extends AbstractHashable ...@@ -56,6 +58,11 @@ public class ImgFeatureValuesDTO extends AbstractHashable
this.featureDefId = featureDefId; this.featureDefId = featureDefId;
} }
public ImgFeatureValuesDTO(Double zInM, Double tInSec, MDDoubleArray array, long featureDefId)
{
this(zInM, tInSec, NativeTaggedArray.toByteArray(array), featureDefId);
}
public long getId() public long getId()
{ {
return id; return id;
...@@ -112,4 +119,9 @@ public class ImgFeatureValuesDTO extends AbstractHashable ...@@ -112,4 +119,9 @@ public class ImgFeatureValuesDTO extends AbstractHashable
this.t = tInSec; this.t = tInSec;
} }
public MDDoubleArray getValuesDoubleArray()
{
return NativeTaggedArray.tryToDoubleArray(getValues());
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment