Modifier and Type | Field and Description |
---|---|
private Meta |
metaob
A new Meta object
|
private java.lang.String |
name
The name of the Object
|
private java.lang.String |
source
The name of the data set in memory to be converted to a JSON object
|
private java.util.List<java.lang.Object> |
stataDataSet
POJO Representation of the data set in memory of Stata
|
private java.lang.Integer |
ver
Version of the Stata caller
|
Constructor and Description |
---|
DataSet(Meta metaobject)
Generic constructor method for the class
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData()
Getter method to access the POJO representation of the Stata dataset
|
java.lang.Object |
getData(java.lang.Integer record)
Method to retrieve a single record of values
|
java.lang.Object |
getData(java.lang.Integer record,
java.lang.Integer var)
Method to retrieve a datum from the dataset object
|
java.lang.String |
getName()
Method to retrieve the name property of the object
|
java.lang.String |
getSource()
Getter method to the name of the Object
|
void |
setData()
Method to store Stata dataset in a List of objects containing maps of
key value pairs where the key is the variable name and the value is
the value on that variable for the given observation
|
void |
setData(java.lang.Number missingValue)
Method to build the Stata data object with user specified missing values
|
java.lang.Object |
toList()
Converts the dataset into a list of variable values nested within a
list of records
|
private Meta metaob
private final java.lang.String source
private final java.lang.String name
private java.util.List<java.lang.Object> stataDataSet
private final java.lang.Integer ver
public DataSet(Meta metaobject)
metaobject
- A Meta class object containing metadata for the
Stata dataset.public void setData()
public void setData(java.lang.Number missingValue)
public java.lang.Object getData()
public java.lang.String getSource()
public java.lang.String getName()
public java.lang.Object getData(java.lang.Integer record)
public java.lang.Object getData(java.lang.Integer record, java.lang.Integer var)