Uses of Annotation Type
com.stata.sfi.ThreadSafe
Packages that use 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
Methods in com.stata.sfi with annotations of type ThreadSafeModifier and TypeMethodDescriptionstatic StringSFIToolkit.formatValue(double val, String format) Format a value using a Stata format.static intData.getBestType(double value) Get the best numeric data type for the specified value.static intData.getMaxStrLength()Get the maximum length of a Stata string variable of type str.static intData.getMaxVars()Get the maximum number of variables Stata currently allows.static Missing.ExtendedMissing.getMissing(double value) Get theMissing.Extendedassociated with a value or null if the value is not missing.Frame.getName()Get the name of the frame.static doubleData.getNum(int var, long obs) Read a numeric value from the current Stata dataset.static doubleDataFrame.getNum(String rname, int var, long obs) Deprecated.Read a numeric value from a data frame.doubleFrame.getNum(int var, long obs) Read a numeric value from the frame.static longData.getObsTotal()Get the number of observations in the current Stata dataset.static longDataFrame.getObsTotal(String rname) Deprecated.Get the number of observations in a data frame.longFrame.getObsTotal()Get the number of observations in the frame.static DoubleData.getRealOfString(String s) Get the double representation of aStringusing Stata's real() function.static StringData.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 intData.getStrVarWidth(int var) Get the width of a variable of type str.static intDataFrame.getStrVarWidth(String rname, int var) Deprecated.Get the width of a variable of type str.intFrame.getStrVarWidth(int var) Get the width of a variable of type str.static intData.getType(int var) Get the data type for the specified variable.static intDataFrame.getType(String rname, int var) Deprecated.Get the numeric data type for the specified variable.intFrame.getType(int var) Get the numeric data type for the specified variable.static doubleMissing.getValue()Get the numeric value that represents the system missing value in Stata.static doubleMissing.getValue(Missing.Extended extendedMissing) Get the numeric value that represents an extended missing value in Stata.static intData.getVarCount()Get the number of variables in the current Stata dataset.static intDataFrame.getVarCount(String rname) Deprecated.Get the number of variables in a data frame.intFrame.getVarCount()Get the number of variables in the frame.static StringData.getVarFormat(int var) Get the format for a Stata variable.static StringDataFrame.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 StringData.getVarLabel(int var) Get the label for a Stata variable.Frame.getVarLabel(int var) Get the label for a variable in the frame.static StringData.getVarName(int var) Get the variable name at a given variable index.static StringDataFrame.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 booleanData.isAlias(int var) Determine if a variable is an alias for a variable in another frame.booleanFrame.isAlias(int var) Determine if a variable is an alias for a variable in another frame.static booleanMissing.isMissing(double value) Test if a value is a Stata missing.static booleanData.isParsedIfTrue(long obs) Determine if an observation for the if expression qualifier used when Java was invoked is true or false.static booleanSFIToolkit.isValidName(String s) Check if aStringis a valid Stata name.static booleanSFIToolkit.isValidVariableName(String s) Check if aStringis a valid Stata variable name.static booleanData.isVarTypeStr(int var) Test if a variable is of type str.static booleanDataFrame.isVarTypeStr(String rname, int var) Deprecated.Test if a variable is of type str.booleanFrame.isVarTypeStr(int var) Test if a variable is of type str.static booleanData.isVarTypeString(int var) Test if a variable's type is string.static booleanDataFrame.isVarTypeString(String rname, int var) Deprecated.Test if a variable is string or numeric.booleanFrame.isVarTypeString(int var) Test if a variable is string or numeric.static booleanData.isVarTypeStrL(int var) Test if a variable is of type strL.static booleanDataFrame.isVarTypeStrL(String rname, int var) Deprecated.Test if a variable is of type strL.booleanFrame.isVarTypeStrL(int var) Test if a variable is of type strL.static StringData.makeVarName(String s, boolean retainCase) Attempt to form a valid variable name from a string.static intData.mapParsedVarIndex(int var) Map the variable index from the parsed varlist.static booleanMissing.parseIsMissing(String s) Test if a string is a Stata missing.static intSFIToolkit.pollnow()Request that Stata poll its GUI immediately.static intSFIToolkit.pollstd()Request that Stata poll its GUI at the standard interval.static StringSFIToolkit.stackTraceToString(Exception e) static StringSFIToolkit.stackTraceToString(Throwable t) static intDataFrame.storeNum(String rname, int var, long obs, double value) Deprecated.Store a numeric value in a data frame.static intData.storeNumFast(int var, long obs, double value) Store a numeric value in the current Stata dataset.intFrame.storeNumFast(int var, long obs, double value) Store a numeric value in the frame.static intData.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.intFrame.storeStrfFast(int var, long obs, String value) Store a string value in the frame.