<h2>org.das2.qds.DataSetAnnotations</h2><p>Place to experiment with runtime notes about datasets in this single-instance lookup table. This uses weak references so that datasets will be garbage collected.</p> <h2>DataSetAnnotations( )</h2> <p></p> <hr> <a name="VALUE_0"></a> <h2>VALUE_0</h2> <p>the value 0 to avoid the if statement in valueOf</p> <hr> <a name="VALUE_1"></a> <h2>VALUE_1</h2> <p>the value 1 to avoid the if statement in valueOf</p> <hr> <a name="ANNOTATION_INVALID_COUNT"></a> <h2>ANNOTATION_INVALID_COUNT</h2> <p>number of invalid entries. If zero, the data is all valid, within valid min to valid max and not fill.</p> <hr> <a name="ANNOTATION_ZERO_COUNT"></a> <h2>ANNOTATION_ZERO_COUNT</h2> <p>number of entries containing the value zero. If zero, then the data is all non-zero or fill. This is used with ANNOTATION_INVALID_COUNT in the where function.</p> <hr> <a name="ANNOTATION_BOUNDS"></a> <h2>ANNOTATION_BOUNDS</h2> <p>the bounding cube of the dataset, see SemanticOps.getBounds.</p> <hr> <a name="ANNOTATION_CADENCE"></a> <h2>ANNOTATION_CADENCE</h2> <p>the cadence for the dataset.</p> <hr> <a name="ANNOTATION_QUBE"></a> <h2>ANNOTATION_QUBE</h2> <p>qube for the dataset.</p> <hr> <a name="getAnnotation-org.das2.qds.QDataSet-java.lang.String"></a> <h2>getAnnotation</h2> getAnnotation( <a href='https://cottagesystems.com/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> annotation ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> <p>return either null or the value for the annotation. Note some Java compilers (Java6?) will not allow code such as:<tt> 0==DataSetAnnotations.getInstance().getAnnotation(...) </tt> so instead use <tt> Integer.valueOf(0)==DataSetAnnotations.getInstance().getAnnotation(...) </tt></p> <h3>Parameters</h3> ds - the dataset. <br> annotation - the annotation name, such as ANNOTATION_INVALID_COUNT. <h3>Returns:</h3> null or the annotation value. <br><br> <a href="https://github.com/autoplot/dev/search?q=getAnnotation&unscoped_q=getAnnotation">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/DataSetAnnotations.md">[view on GitHub]</a> <a href="https://cottagesystems.com/~jbf/autoplot/doc2018/org/das2/qds/DataSetAnnotations.html#getAnnotation-org.das2.qds.QDataSet-java.lang.String">[view on old javadoc]</a> <a href="https://github.com/das-developers/das2java/tree/main/QDataSet/src/org/das2/qds/DataSetAnnotations.java#L94">[view source]</a> <br> <br> <hr> <a name="getInstance"></a> <h2>getInstance</h2> getInstance( ) → <a href='https://cottagesystems.com/~jbf/autoplot/doc/org/das2/qds/DataSetAnnotations.html'>org.das2.qds.DataSetAnnotations</a> <p>access the single instance</p> <h3>Returns:</h3> the single instance <br><br> <a href="https://github.com/autoplot/dev/search?q=getInstance&unscoped_q=getInstance">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/DataSetAnnotations.md">[view on GitHub]</a> <a href="https://cottagesystems.com/~jbf/autoplot/doc2018/org/das2/qds/DataSetAnnotations.html#getInstance">[view on old javadoc]</a> <a href="https://github.com/das-developers/das2java/tree/main/QDataSet/src/org/das2/qds/DataSetAnnotations.java#L48">[view source]</a> <br> <br> <hr> <a name="peek"></a> <h2>peek</h2> peek( ) → void <p>print the map of annotations to stderr.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=peek&unscoped_q=peek">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/DataSetAnnotations.md">[view on GitHub]</a> <a href="https://cottagesystems.com/~jbf/autoplot/doc2018/org/das2/qds/DataSetAnnotations.html#peek">[view on old javadoc]</a> <a href="https://github.com/das-developers/das2java/tree/main/QDataSet/src/org/das2/qds/DataSetAnnotations.java#L134">[view source]</a> <br> <br> <hr> <a name="putAnnotation-org.das2.qds.QDataSet-java.lang.String-java.lang.Object"></a> <h2>putAnnotation</h2> putAnnotation( <a href='https://cottagesystems.com/~jbf/autoplot/doc/org/das2/qds/QDataSet.html'>QDataSet</a> ds, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> annotation, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> value ) → void <p>add the annotation.</p> <h3>Parameters</h3> ds - the dataset to annotate <br> annotation - the annotation name, such as ANNOTATION_INVALID_COUNT. <br> value - the value. <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=putAnnotation&unscoped_q=putAnnotation">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/DataSetAnnotations.md">[view on GitHub]</a> <a href="https://cottagesystems.com/~jbf/autoplot/doc2018/org/das2/qds/DataSetAnnotations.html#putAnnotation-org.das2.qds.QDataSet-java.lang.String-java.lang.Object">[view on old javadoc]</a> <a href="https://github.com/das-developers/das2java/tree/main/QDataSet/src/org/das2/qds/DataSetAnnotations.java#L122">[view source]</a> <br> <br> <hr> <a name="reset"></a> <h2>reset</h2> reset( ) → void <p>reset the internal state.</p> <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=reset&unscoped_q=reset">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/DataSetAnnotations.md">[view on GitHub]</a> <a href="https://cottagesystems.com/~jbf/autoplot/doc2018/org/das2/qds/DataSetAnnotations.html#reset">[view on old javadoc]</a> <a href="https://github.com/das-developers/das2java/tree/main/QDataSet/src/org/das2/qds/DataSetAnnotations.java#L159">[view source]</a> <br> <br>