Uses of Annotation Type
com.stata.sfi.ThreadSafe
Package
Description
The Stata Function Interface (SFI) provides the classes necessary for Java to
interact with core features of Stata.
-
Uses of ThreadSafe in com.stata.sfi
Modifier and TypeMethodDescriptionstatic String
SFIToolkit.formatValue
(double val, String format) Format a value using a Stata format.static int
Data.getBestType
(double value) Get the best numeric data type for the specified value.static int
Data.getMaxStrLength()
Get the maximum length of a Stata string variable of type str.static int
Data.getMaxVars()
Get the maximum number of variables Stata currently allows.static Missing.Extended
Missing.getMissing
(double value) Get theMissing.Extended
associated with a value or null if the value is not missing.static double
Data.getNum
(int var, long obs) Read a numeric value from the current Stata dataset.static double
DataFrame.getNum
(String rname, int var, long obs) Deprecated.Read a numeric value from a data frame.double
Frame.getNum
(int var, long obs) Read a numeric value from the frame.static long
Data.getObsTotal()
Get the number of observations in the current Stata dataset.static long
DataFrame.getObsTotal
(String rname) Deprecated.Get the number of observations in a data frame.long
Frame.getObsTotal()
Get the number of observations in the frame.static Double
Data.getRealOfString
(String s) Get the double representation of aString
using Stata's real() function.static String
Data.getStrf
(int var, long obs) Read a string value from the current Stata dataset; this method can be used to read str data types.Frame.getStrf
(int index, long obs) Read a string value from the frame.static int
Data.getStrVarWidth
(int var) Get the width of a variable of type str.static int
DataFrame.getStrVarWidth
(String rname, int var) Deprecated.Get the width of a variable of type str.int
Frame.getStrVarWidth
(int var) Get the width of a variable of type str.static int
Data.getType
(int var) Get the data type for the specified variable.static int
DataFrame.getType
(String rname, int var) Deprecated.Get the numeric data type for the specified variable.int
Frame.getType
(int var) Get the numeric data type for the specified variable.static double
Missing.getValue()
Get the numeric value that represents the system missing value in Stata.static double
Missing.getValue
(Missing.Extended extendedMissing) Get the numeric value that represents an extended missing value in Stata.static int
Data.getVarCount()
Get the number of variables in the current Stata dataset.static int
DataFrame.getVarCount
(String rname) Deprecated.Get the number of variables in a data frame.int
Frame.getVarCount()
Get the number of variables in the frame.static String
Data.getVarFormat
(int var) Get the format for a Stata variable.static String
DataFrame.getVarFormat
(String rname, int var) Deprecated.Get the format for a variable in a data frame.Frame.getVarFormat
(int var) Get the format for a variable in the frame.static String
Data.getVarLabel
(int var) Get the label for a Stata variable.Frame.getVarLabel
(int var) Get the label for a variable in the frame.static String
Data.getVarName
(int var) Get the variable name at a given variable index.static String
DataFrame.getVarName
(String rname, int var) Deprecated.Get the variable name at a given variable index.Frame.getVarName
(int var) Get the variable name at a given variable index.static boolean
Data.isAlias
(int var) Determine if a variable is an alias for a variable in another frame.boolean
Frame.isAlias
(int var) Determine if a variable is an alias for a variable in another frame.static boolean
Missing.isMissing
(double value) Test if a value is a Stata missing.static boolean
Data.isParsedIfTrue
(long obs) Determine if an observation for the if expression qualifier used when Java was invoked is true or false.static boolean
SFIToolkit.isValidName
(String s) Check if aString
is a valid Stata name.static boolean
SFIToolkit.isValidVariableName
(String s) Check if aString
is a valid Stata variable name.static boolean
Data.isVarTypeStr
(int var) Test if a variable is of type str.static boolean
DataFrame.isVarTypeStr
(String rname, int var) Deprecated.Test if a variable is of type str.boolean
Frame.isVarTypeStr
(int var) Test if a variable is of type str.static boolean
Data.isVarTypeString
(int var) Test if a variable's type is string.static boolean
DataFrame.isVarTypeString
(String rname, int var) Deprecated.Test if a variable is string or numeric.boolean
Frame.isVarTypeString
(int var) Test if a variable is string or numeric.static boolean
Data.isVarTypeStrL
(int var) Test if a variable is of type strL.static boolean
DataFrame.isVarTypeStrL
(String rname, int var) Deprecated.Test if a variable is of type strL.boolean
Frame.isVarTypeStrL
(int var) Test if a variable is of type strL.static String
Data.makeVarName
(String s, boolean retainCase) Attempt to form a valid variable name from a string.static int
Data.mapParsedVarIndex
(int var) Map the variable index from the parsed varlist.static boolean
Missing.parseIsMissing
(String s) Test if a string is a Stata missing.static int
SFIToolkit.pollnow()
Request that Stata poll its GUI immediately.static int
SFIToolkit.pollstd()
Request that Stata poll its GUI at the standard interval.static String
SFIToolkit.stackTraceToString
(Exception e) static String
SFIToolkit.stackTraceToString
(Throwable t) static int
DataFrame.storeNum
(String rname, int var, long obs, double value) Deprecated.Store a numeric value in a data frame.static int
Data.storeNumFast
(int var, long obs, double value) Store a numeric value in the current Stata dataset.int
Frame.storeNumFast
(int var, long obs, double value) Store a numeric value in the frame.static int
Data.storeStrfFast
(int var, long obs, String value) Store a string value in the current Stata dataset; this method can be used to store str data types.int
Frame.storeStrfFast
(int var, long obs, String value) Store a string value in the frame.