org.das2.qds.WritableDataSetWrapper

Jython needs all datasets to be writable, and this provides the write capability while avoiding unnecessary copies when the dataset is never mutated.

WritableDataSetWrapper( QDataSet ds )

create the WritableDataSetWrapper


length

length( ) → int

return the length the dimension at the index.

Returns:

the length of the dimension.

[search for examples] [view on GitHub] [view on old javadoc] [view source]

length( int i0 ) → int
length( int i0, int i1 ) → int
length( int i0, int i1, int i2 ) → int

putValue

putValue( double d ) → void

insert the new value at this index. If this is the first write to the dataset, then a writable dataset is created.

Parameters

d - the value

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

rank

rank( ) → int

return the rank of the dataset.

Returns:

the rank

[search for examples] [view on GitHub] [view on old javadoc] [view source]


value

value( ) → double

return the value of this rank 0 dataset.

Returns:

the value

[search for examples] [view on GitHub] [view on old javadoc] [view source]

value( int i0 ) → double
value( int i0, int i1 ) → double
value( int i0, int i1, int i2 ) → double
value( int i0, int i1, int i2, int i3 ) → double