public class DataSetAnnotations
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANNOTATION_BOUNDS
the bounding cube of the dataset, see SemanticOps.getBounds.
|
static java.lang.String |
ANNOTATION_CADENCE
the cadence for the dataset.
|
static java.lang.String |
ANNOTATION_INVALID_COUNT
number of invalid entries.
|
static java.lang.String |
ANNOTATION_QUBE
qube for the dataset.
|
static java.lang.String |
ANNOTATION_ZERO_COUNT
number of entries containing the value zero.
|
static java.lang.Integer |
VALUE_0
the value 0 to avoid the if statement in valueOf
|
static java.lang.Integer |
VALUE_1
the value 1 to avoid the if statement in valueOf
|
| Constructor and Description |
|---|
DataSetAnnotations() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAnnotation(QDataSet ds,
java.lang.String annotation)
return either null or the value for the annotation.
|
static DataSetAnnotations |
getInstance()
access the single instance
|
void |
peek()
print the map of annotations to stderr.
|
void |
putAnnotation(QDataSet ds,
java.lang.String annotation,
java.lang.Object value)
add the annotation.
|
void |
reset()
reset the internal state.
|
public static final java.lang.Integer VALUE_0
public static final java.lang.Integer VALUE_1
public static final java.lang.String ANNOTATION_INVALID_COUNT
public static final java.lang.String ANNOTATION_ZERO_COUNT
public static final java.lang.String ANNOTATION_BOUNDS
public static final java.lang.String ANNOTATION_CADENCE
public static final java.lang.String ANNOTATION_QUBE
public static DataSetAnnotations getInstance()
public java.lang.Object getAnnotation(QDataSet ds, java.lang.String annotation)
ds - the dataset.annotation - the annotation name, such as ANNOTATION_INVALID_COUNT.public void putAnnotation(QDataSet ds, java.lang.String annotation, java.lang.Object value)
ds - the dataset to annotateannotation - the annotation name, such as ANNOTATION_INVALID_COUNT.value - the value.public void peek()
public void reset()