Class DataVector
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.expression.bioAssayData.DataVector
- All Implemented Interfaces:
Identifiable
- Direct Known Subclasses:
DesignElementDataVector
An abstract class representing a one-dimensional vector of data about some aspect of an
ExpressionExperiment.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()boolean[]Obtain the data as a genericBuffer.char[]Obtain the data as aDoubleBuffer.double[]float[]int[]long[]Object[]String[]String[]abstract QuantitationTypeOwningQuantitationType.inthashCode()Returns a hash code based on this entity's identifiers.voidsetData(byte[] data) voidsetDataAsBooleans(boolean[] data) voidsetDataAsChars(char[] data) voidsetDataAsDoubles(double[] data) voidsetDataAsFloats(float[] data) voidsetDataAsInts(int[] data) voidsetDataAsLongs(long[] data) voidsetDataAsObjects(Object[] data) voidsetDataAsStrings(String[] data) voidsetDataAsTabbedStrings(String[] data) voidsetExpressionExperiment(ExpressionExperiment expressionExperiment) abstract voidsetQuantitationType(QuantitationType quantitationType) Methods inherited from class AbstractIdentifiable
equals, getId, setId, toString
-
Constructor Details
-
DataVector
public DataVector()
-
-
Method Details
-
getQuantitationType
OwningQuantitationType. Fetch mode varies by concrete subclass — bulk vectors keep the QT LAZY to avoid an N+1 on bulk loads, single-cell vectors fetch eagerly to match the original hbm. Declared as an abstract accessor here so each subclass can configure its own@ManyToOnefetch policy (which @MappedSuperclass + @AssociationOverride cannot do). -
setQuantitationType
-
getDataAsBuffer
-
getDataAsFloats
public float[] getDataAsFloats() -
setDataAsFloats
public void setDataAsFloats(float[] data) -
getDataAsFloatBuffer
-
getDataAsDoubles
public double[] getDataAsDoubles() -
getDataAsDoubleBuffer
Obtain the data as aDoubleBuffer.The underlying data is not copied, so this is the most efficient way to perform arbitrary access or slice parts of the vector.
-
setDataAsDoubles
public void setDataAsDoubles(double[] data) -
getDataAsBooleans
public boolean[] getDataAsBooleans() -
setDataAsBooleans
public void setDataAsBooleans(boolean[] data) -
getDataAsChars
public char[] getDataAsChars() -
setDataAsChars
public void setDataAsChars(char[] data) -
getDataAsInts
public int[] getDataAsInts() -
getDataAsIntBuffer
-
setDataAsInts
public void setDataAsInts(int[] data) -
getDataAsLongs
public long[] getDataAsLongs() -
getDataAsLongBuffer
-
setDataAsLongs
public void setDataAsLongs(long[] data) -
getDataAsStrings
-
setDataAsStrings
-
getDataAsTabbedStrings
-
setDataAsTabbedStrings
-
getDataAsObjects
-
setDataAsObjects
-
hashCode
public int hashCode()Returns a hash code based on this entity's identifiers.- Specified by:
hashCodein classAbstractIdentifiable
-
getExpressionExperiment
-
getData
public byte[] getData() -
setExpressionExperiment
-
setData
public void setData(byte[] data)
-