public abstract class QDataSetBridge
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
filter |
static java.lang.String |
PROP_FILTER |
| Modifier and Type | Method and Description |
|---|---|
void |
clearFillValue()
don't use fill value.
|
void |
clearMemory()
clear existing data from memory, in case the bridge object is not cleared
from in IDL or Matlab memory.
|
void |
clearPreferredUnits()
clear any preference for units.
|
java.lang.String |
depend(int dim) |
void |
doGetDataSet()
performs the read.
|
void |
doGetDataSet(ProgressMonitor mon)
This initiates the read on a separate thread, so this does not
block and should be used with caution.
|
int[] |
freeMemory()
return the total memory and free memory available to the Java process,
in megabytes (1e6 bytes).
|
java.lang.Exception |
getException()
return the Exception from the last doGetDataSet call.
|
java.lang.String |
getFilter()
get the filter that is applied to the data immediately after it is loaded.
|
ProgressMonitor |
getProgressMonitor()
returns an object that can be used to monitor the progress of a download.
|
int |
getStatus()
returns 0 for last get operation successful
|
java.lang.String |
getStatusMessage()
returns "" for last operation successful, or non-empty indicating the problem.
|
boolean |
hasProperty(java.lang.String propname) |
boolean |
hasProperty(java.lang.String propname,
int i) |
boolean |
hasProperty(java.lang.String name,
java.lang.String propname) |
boolean |
hasProperty(java.lang.String name,
java.lang.String propname,
int i) |
boolean |
isQube() |
void |
labelsAlias(java.lang.String name,
java.lang.String[] result)
get the string values of the data instead of the numbers.
|
int |
length()
return the length of the zeroth dimension of the main dataset.
|
int |
length(java.lang.String name)
return the length of the zeroth dimension of the dataset
|
int[] |
lengths()
return the lengths of the dimensions of the default dataset.
|
int[] |
lengths(int i)
return the lengths of the dimensions of the main dataset, once sliced at index i.
|
int[] |
lengths(java.lang.String name)
return the lengths of the dimensions of the specified dataset.
|
int[] |
lengths(java.lang.String name,
int i)
return the lengths of the dimensions of the named dataset, once sliced at index i.
|
java.lang.String |
name() |
java.lang.String |
nameFor(QDataSet dep0)
return the name used to refer to the dataset.
|
java.lang.String[] |
names() |
java.lang.String |
plane(int iplane) |
java.util.Map<java.lang.String,java.lang.Object> |
properties() |
java.util.Map<java.lang.String,java.lang.Object> |
properties(int i) |
java.util.Map<java.lang.String,java.lang.Object> |
properties(java.lang.String name)
get the properties for the named dataset
|
java.util.Map<java.lang.String,java.lang.Object> |
properties(java.lang.String name,
int i)
get the properties for the named dataset
|
java.lang.Object |
property(java.lang.String propname)
returns one of String, int, double, float, int[], double, float[]
|
java.lang.Object |
property(java.lang.String propname,
int i)
returns one of String, int, double, float, int[], double, float[]
|
java.lang.Object |
property(java.lang.String name,
java.lang.String propname)
returns one of String, int, double, float, int[], double, float[]
|
java.lang.Object |
property(java.lang.String name,
java.lang.String propname,
int i)
returns one of String, int, double, float, int[], double, float[]
|
double |
propertyAsDouble(java.lang.String property) |
double |
propertyAsDouble(java.lang.String name,
java.lang.String property) |
java.lang.String |
propertyAsString(java.lang.String property) |
java.lang.String |
propertyAsString(java.lang.String name,
java.lang.String property) |
int |
rank()
return the number of dimensions of the default dataset.
|
int |
rank(java.lang.String name)
return the number of dimensions of the specified dataset.
|
void |
reportMemory()
print the Java memory stats to stderr.
|
void |
setDebug(boolean debug)
turn on/off debug messages
|
void |
setFillDouble(double d)
set the value to return when the data is invalid, when the data is known to be stored as doubles
(8-byte numbers).
|
void |
setFillValue(double d)
set the value to return when the data is invalid.
|
void |
setFillValue(float f) |
void |
setFilter(java.lang.String filter)
set the filter that is applied to the data immediately after it is loaded.
|
void |
setPreferredUnits(java.lang.String sunit)
set the preferred units for the data.
|
java.lang.Object |
slice(int i0)
return an 1,2,or 3-D array of doubles or floats containing the values
in a slice on the zeroth dimension of the default dataset.
|
void |
slice(int i,
double[] result) |
void |
slice(int i,
double[][] result) |
void |
slice(int i,
double[][][] result) |
java.lang.Object |
slice(java.lang.String name,
int i)
return the i-th 1 or 2-D array of doubles or floats containing the values
in the specified rank 2 or 3 dataset.
|
void |
slice(java.lang.String name,
int i,
double[] result)
accessor for non-qube
|
void |
slice(java.lang.String name,
int i,
double[][] result)
accessor for non-qube
|
void |
slice(java.lang.String name,
int i,
double[][][] result) |
java.lang.Object |
slice1(int index)
slice on the first dimension, which is useful for extracting
data component by component.
|
java.lang.Object |
slice1(int index,
java.lang.String name) |
java.lang.Object |
values()
return an 1,2,or 3-D array of doubles or floats containing the values
in the default dataset.
|
void |
values(double[] result) |
void |
values(double[][] result) |
void |
values(double[][][] result) |
void |
values(double[][][][] result) |
java.lang.Object |
values(java.lang.String name)
return an 1,2,or 3-D array of doubles or floats containing the values
in the specified dataset.
|
void |
values(java.lang.String name,
double[] result) |
void |
values(java.lang.String name,
double[][] result) |
void |
values(java.lang.String name,
double[][][] result) |
void |
values(java.lang.String name,
double[][][][] result) |
void |
valuesAlias(java.lang.String name,
double[] result)
copy the data into a 1-D array.
|
protected java.lang.String filter
public static final java.lang.String PROP_FILTER
public void setPreferredUnits(java.lang.String sunit)
seconds since 2010-01-01T00:00 days since 2010-01-01T00:00 Hz kHz MHz
sunit - public void clearPreferredUnits()
public void setFillValue(double d)
d - public void setFillValue(float f)
public void setFillDouble(double d)
d - public java.lang.String getFilter()
public void setFilter(java.lang.String filter)
filter - filter string like "|histogram()" or "" for no filters.public void setDebug(boolean debug)
debug - public void clearFillValue()
public void doGetDataSet()
public void doGetDataSet(ProgressMonitor mon)
mon - progress monitor from getProgressMonitor()public java.lang.Exception getException()
public int getStatus()
public java.lang.String getStatusMessage()
public java.lang.String nameFor(QDataSet dep0)
dep0 - the datasetpublic ProgressMonitor getProgressMonitor()
public void values(java.lang.String name,
double[] result)
public void values(java.lang.String name,
double[][] result)
public void values(java.lang.String name,
double[][][] result)
public void values(java.lang.String name,
double[][][][] result)
public void values(double[] result)
public void values(double[][] result)
public void values(double[][][] result)
public void values(double[][][][] result)
public void slice(java.lang.String name,
int i,
double[] result)
name - i - result - public void slice(java.lang.String name,
int i,
double[][] result)
name - i - result - public void slice(java.lang.String name,
int i,
double[][][] result)
public void slice(int i,
double[] result)
public void slice(int i,
double[][] result)
public void slice(int i,
double[][][] result)
public java.lang.Object values(java.lang.String name)
name - public java.lang.Object slice(java.lang.String name,
int i)
name - i - public java.lang.Object values()
public java.lang.Object slice(int i0)
i0 - the index to slice on.public java.lang.Object slice1(int index)
index - public java.lang.Object slice1(int index,
java.lang.String name)
public java.lang.String depend(int dim)
public java.lang.String plane(int iplane)
public java.lang.String propertyAsString(java.lang.String property)
public double propertyAsDouble(java.lang.String property)
public java.lang.String propertyAsString(java.lang.String name,
java.lang.String property)
public double propertyAsDouble(java.lang.String name,
java.lang.String property)
public void valuesAlias(java.lang.String name,
double[] result)
name - result - public void labelsAlias(java.lang.String name,
java.lang.String[] result)
name - result - public int[] lengths(java.lang.String name)
name - public int[] lengths()
public int[] lengths(java.lang.String name,
int i)
name - i - the index to slicelength which returns the length of the zeroth index.public int[] lengths(int i)
i - the index to slicepublic int length(java.lang.String name)
name - public int length()
public int rank(java.lang.String name)
name - public int rank()
public boolean isQube()
public java.lang.Object property(java.lang.String name,
java.lang.String propname,
int i)
name - propname - i - public boolean hasProperty(java.lang.String name,
java.lang.String propname,
int i)
public java.util.Map<java.lang.String,java.lang.Object> properties(java.lang.String name,
int i)
name - i - the indexpublic java.lang.Object property(java.lang.String name,
java.lang.String propname)
name - propname - public boolean hasProperty(java.lang.String name,
java.lang.String propname)
public java.util.Map<java.lang.String,java.lang.Object> properties(java.lang.String name)
name - public java.lang.Object property(java.lang.String propname)
propname - public boolean hasProperty(java.lang.String propname)
public java.util.Map<java.lang.String,java.lang.Object> properties()
public java.lang.Object property(java.lang.String propname,
int i)
propname - the property namei - the slice indexpublic boolean hasProperty(java.lang.String propname,
int i)
public java.util.Map<java.lang.String,java.lang.Object> properties(int i)
public java.lang.String[] names()
public java.lang.String name()
public void reportMemory()
clearMemory()public int[] freeMemory()
public void clearMemory()
reportMemory()