org.das2.qds.SparseDataSetBuilder
Builder for SparseDataSets. This was introduced to fix the problem where
we wish to calculate the SparseDataSet in one pass, but we can't do this because
PyQDataSets obscure the type and there was no way to set the length.
This is also useful for building the BundleDescriptor datasets that describe how to
unpack rank 2 datasets with the BUNDLE_1 property.
SparseDataSetBuilder( int rank )
getDataSet
getDataSet( ) → SparseDataSet
Returns:
org.das2.qds.SparseDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
putProperty
putProperty( String name, Object value ) → void
Parameters
name - a String
value - an Object
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
putProperty( String name, int index, Object value ) → void
putValue
putValue( double d ) → void
Parameters
d - a double
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
putValue( int i0, double d ) → void
putValue( int i0, int i1, double d ) → void
putValue( int i0, int i1, int i2, double d ) → void
putValue( int i0, int i1, int i2, int i3, double d ) → void
setLength
setLength( int i0 ) → void
set the length of the zeroth dimension. Other dimensions have length set implicitly by the highest value set.
If this is not set explicitly, then it will be implicit as well.
Parameters
i0 - an int
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setQube
setQube( int[] qube ) → void
make this a qube dataset, where all the lengths are the same.
implicitly this calls setLength(qube[0]).
Parameters
qube - an int[]
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]