public class AstStratifiedSplit extends AstPrimitive
| Modifier and Type | Class and Description |
|---|---|
static class |
AstStratifiedSplit.ClassAssignMRTask |
static class |
AstStratifiedSplit.ClassIdxTask |
static class |
AstStratifiedSplit.LongAry |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
OUTPUT_COLUMN_DOMAIN |
static java.lang.String |
OUTPUT_COLUMN_NAME |
| Constructor and Description |
|---|
AstStratifiedSplit() |
| Modifier and Type | Method and Description |
|---|---|
ValFrame |
apply(Env env,
Env.StackHelp stk,
AstRoot[] asts)
Primary method to invoke this function, passing all the parameters
as the `asts` list.
|
java.lang.String[] |
args()
List of argument names.
|
int |
nargs()
Number of function's arguments + 1.
|
static Vec |
split(Vec stratifyingColumn,
double splittingFraction,
long randomizationSeed,
java.lang.String[] splittingDom) |
java.lang.String |
str()
String representation of this Ast object in the Rapids language.
|
description, example, execasBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSONpublic static final java.lang.String OUTPUT_COLUMN_NAME
public static final java.lang.String[] OUTPUT_COLUMN_DOMAIN
public java.lang.String[] args()
AstPrimitiveargs in class AstPrimitivepublic int nargs()
AstPrimitivenargs in class AstPrimitivepublic java.lang.String str()
AstRootAstPrimitives this is the name of the function; for
AstParameters this is either the name of the variable, or the
value of the numeric constant that the parameter represents. For more
complicated constructs such as AstExec or AstFunction
this method should return those objects as a Rapids string.public ValFrame apply(Env env, Env.StackHelp stk, AstRoot[] asts)
AstPrimitivePrimary method to invoke this function, passing all the parameters as the `asts` list.
apply in class AstPrimitiveenv - Current execution environment. Variables are looked up here.stk - TODO need clarificationasts - List of AstRoot expressions that are arguments to the
function. First element in this list is the function itself.