Modifier and Type | Field and Description |
---|---|
private java.lang.String |
filename
The name of the data set in memory to be converted to a JSON object
|
private Meta |
metaob
A new Meta object
|
private java.lang.Byte[][] |
stataDataSet
A 2d array of Byte objects
|
private java.lang.Integer |
ver
Version of the Stata caller
|
Constructor and Description |
---|
DataSetByteArrays(Meta metaobject)
Generic constructor method for the class
|
DataSetByteArrays(Meta metaobject,
java.lang.Number missingValue)
Generic constructor method for the class
|
Modifier and Type | Method and Description |
---|---|
java.lang.Byte[][] |
getData()
Getter method to access the POJO representation of the Stata dataset
|
java.lang.Byte[] |
getData(java.lang.Integer record)
Method to retrieve a single record of values
|
java.lang.Byte |
getData(java.lang.Integer record,
java.lang.Integer var)
Method to retrieve a datum from the dataset object
|
java.lang.String |
getFileName()
Getter method to the name of the Object
|
void |
setData()
Method to store Stata dataset as a 2d Array of Byte objects.
|
void |
setData(java.lang.Number missingValue)
Method to store Stata dataset as a 2d Array of Byte objects.
|
void |
setFileName()
Generic Setter method for the name of the dataset object
|
java.util.List<java.util.List<java.lang.Byte>> |
toList()
Converts the dataset into a list of variable values nested within a
list of records
|
private Meta metaob
private java.lang.String filename
private java.lang.Byte[][] stataDataSet
private final java.lang.Integer ver
public DataSetByteArrays(Meta metaobject)
metaobject
- A Meta class object containing metadata for the
Stata dataset.public DataSetByteArrays(Meta metaobject, java.lang.Number missingValue)
metaobject
- A Meta class object containing metadata for the
Stata dataset.missingValue
- A user defined value to use for representing
missing values in the datapublic void setFileName()
public void setData()
public void setData(java.lang.Number missingValue)
public java.lang.Byte[][] getData()
public java.lang.Byte[] getData(java.lang.Integer record)
public java.lang.Byte getData(java.lang.Integer record, java.lang.Integer var)
public java.lang.String getFileName()
public java.util.List<java.util.List<java.lang.Byte>> toList()