public class org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough extends org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough
{
public static final org.eclipse.collections.api.list.MutableList SELECT_ALL;
public static final org.eclipse.collections.api.list.MutableList FILTER;
public static final org.eclipse.collections.api.list.MutableList EXTEND;
public static final org.eclipse.collections.api.list.MutableList GROUP_BY;
public static final org.eclipse.collections.api.list.MutableList SORT;
public static final org.eclipse.collections.api.list.MutableList LIMIT;
private final org.finos.legend.engine.repl.dataCube.server.REPLServer replServer;
private java.lang.String tableName;
void <init>(org.finos.legend.engine.repl.client.Client, org.finos.legend.engine.repl.dataCube.server.REPLServer)
{
org.finos.legend.engine.repl.dataCube.server.REPLServer v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
org.finos.legend.engine.repl.client.Client v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v := @parameter: org.finos.legend.engine.repl.client.Client;
v := @parameter: org.finos.legend.engine.repl.dataCube.server.REPLServer;
specialinvoke v.<org.finos.legend.engine.repl.shared.DocumentationHelper$Walkthrough: void <init>(org.finos.legend.engine.repl.client.Client)>(v);
v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.dataCube.server.REPLServer replServer> = v;
return;
}
public void beforeStep()
{
org.finos.legend.engine.plan.execution.stores.relational.connection.driver.DatabaseManager v;
java.sql.Connection v;
org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseType v;
org.eclipse.collections.api.block.predicate.Predicate v;
org.eclipse.collections.api.list.MutableList v;
org.finos.legend.engine.repl.client.ModelState v;
org.finos.legend.engine.plan.execution.PlanExecutor v;
org.finos.legend.engine.protocol.pure.v.model.context.PureModelContextData v;
java.nio.file.attribute.FileAttribute[] v;
java.lang.Thread v;
java.nio.file.Path v;
boolean v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
java.lang.Exception v;
org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseConnection v;
org.finos.legend.engine.plan.execution.stores.relational.connection.driver.commands.RelationalDatabaseCommands v;
java.lang.ClassLoader v;
java.lang.Throwable v, v, v;
org.finos.legend.engine.repl.client.Client v, v;
int v, v;
java.lang.String v, v, v, v, v, v, v;
java.io.FileOutputStream v;
java.lang.RuntimeException v;
java.io.File v;
java.sql.Statement v;
java.lang.Object v;
java.io.InputStream v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.client.Client client>;
v = virtualinvoke v.<org.finos.legend.engine.repl.client.Client: org.finos.legend.engine.repl.client.ModelState getModelState()>();
v = virtualinvoke v.<org.finos.legend.engine.repl.client.ModelState: org.finos.legend.engine.protocol.pure.v.model.context.PureModelContextData parse()>();
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCube: java.lang.String getLocalConnectionPath()>();
v = staticinvoke <org.finos.legend.engine.repl.relational.shared.ConnectionHelper: org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseConnection getDatabaseConnection(org.finos.legend.engine.protocol.pure.v.model.context.PureModelContextData,java.lang.String)>(v, v);
label:
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
v = virtualinvoke v.<java.lang.Thread: java.lang.ClassLoader getContextClassLoader()>();
v = virtualinvoke v.<java.lang.ClassLoader: java.io.InputStream getResourceAsStream(java.lang.String)>("org/finos/legend/engine/repl/dataCube/walkthrough/sport-data.csv");
label:
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.client.Client client>;
v = virtualinvoke v.<org.finos.legend.engine.repl.client.Client: org.finos.legend.engine.plan.execution.PlanExecutor getPlanExecutor()>();
v = staticinvoke <org.finos.legend.engine.repl.relational.shared.ConnectionHelper: java.sql.Connection getConnection(org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseConnection,org.finos.legend.engine.plan.execution.PlanExecutor)>(v, v);
label:
v = interfaceinvoke v.<java.sql.Connection: java.sql.Statement createStatement()>();
label:
v = staticinvoke <org.finos.legend.engine.repl.relational.schema.MetadataReader: org.eclipse.collections.api.list.MutableList getTables(java.sql.Connection)>(v);
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: java.lang.String tableName>;
if v != null goto label;
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: int size()>();
v = v + 1;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("table\u0001");
goto label;
label:
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: java.lang.String tableName>;
label:
v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: java.lang.String tableName> = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_beforeStep_8c950384_1__31: org.eclipse.collections.api.block.predicate.Predicate bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: boolean anySatisfy(org.eclipse.collections.api.block.predicate.Predicate)>(v);
if v != 0 goto label;
v = newarray (java.nio.file.attribute.FileAttribute)[0];
v = staticinvoke <java.nio.file.Files: java.nio.file.Path createTempFile(java.lang.String,java.lang.String,java.nio.file.attribute.FileAttribute[])>("walkthrough-sample-data", ".csv", v);
v = new java.io.FileOutputStream;
v = interfaceinvoke v.<java.nio.file.Path: java.io.File toFile()>();
specialinvoke v.<java.io.FileOutputStream: void <init>(java.io.File)>(v);
v = staticinvoke <java.util.Objects: java.lang.Object requireNonNull(java.lang.Object,java.lang.String)>(v, "Can\'t extract sample data for walkthrough");
staticinvoke <org.apache.commons.io.IOUtils: int copy(java.io.InputStream,java.io.OutputStream)>(v, v);
v = v.<org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseConnection: org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseType type>;
v = virtualinvoke v.<org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseType: java.lang.String name()>();
v = staticinvoke <org.finos.legend.engine.plan.execution.stores.relational.connection.driver.DatabaseManager: org.finos.legend.engine.plan.execution.stores.relational.connection.driver.DatabaseManager fromString(java.lang.String)>(v);
v = virtualinvoke v.<org.finos.legend.engine.plan.execution.stores.relational.connection.driver.DatabaseManager: org.finos.legend.engine.plan.execution.stores.relational.connection.driver.commands.RelationalDatabaseCommands relationalDatabaseSupport()>();
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: java.lang.String tableName>;
v = interfaceinvoke v.<java.nio.file.Path: java.lang.String toString()>();
v = virtualinvoke v.<org.finos.legend.engine.plan.execution.stores.relational.connection.driver.commands.RelationalDatabaseCommands: java.lang.String load(java.lang.String,java.lang.String)>(v, v);
interfaceinvoke v.<java.sql.Statement: int executeUpdate(java.lang.String)>(v);
label:
if v == null goto label;
interfaceinvoke v.<java.sql.Statement: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
interfaceinvoke v.<java.sql.Connection: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
if v == null goto label;
virtualinvoke v.<java.io.InputStream: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Exception from label to label with label;
}
public void afterStep()
{
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
return;
}
protected org.eclipse.collections.api.list.MutableList getSteps()
{
org.eclipse.collections.api.block.function.Function[] v;
org.eclipse.collections.api.factory.list.MutableListFactory v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
org.eclipse.collections.api.list.MutableList v;
org.eclipse.collections.api.block.function.Function v, v, v, v, v, v, v, v, v, v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v = <org.eclipse.collections.api.factory.Lists: org.eclipse.collections.api.factory.list.MutableListFactory mutable>;
v = newarray (org.eclipse.collections.api.block.function.Function)[10];
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_1__32: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[0] = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_2__33: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[1] = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_3__34: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[2] = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_4__35: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[3] = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_5__36: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[4] = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_6__37: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[5] = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_7__38: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[6] = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_8__39: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[7] = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_9__40: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[8] = v;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1$lambda_getSteps_67d257ed_10__41: org.eclipse.collections.api.block.function.Function bootstrap$(org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough)>(v);
v[9] = v;
v = interfaceinvoke v.<org.eclipse.collections.api.factory.list.MutableListFactory: org.eclipse.collections.api.list.MutableList 'with'(java.lang.Object[])>(v);
return v;
}
private org.finos.legend.engine.repl.relational.RelationalReplExtension getRelationalExtension()
{
java.lang.Object v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
org.finos.legend.engine.repl.client.Client v;
org.eclipse.collections.api.list.MutableList v, v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.client.Client client>;
v = virtualinvoke v.<org.finos.legend.engine.repl.client.Client: org.eclipse.collections.api.list.MutableList getReplExtensions()>();
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: org.eclipse.collections.api.list.MutableList selectInstancesOf(java.lang.Class)>(class "Lorg/finos/legend/engine/repl/relational/RelationalReplExtension;");
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: java.lang.Object getFirst()>();
return v;
}
private java.lang.String query(org.eclipse.collections.api.list.MutableList, java.lang.Integer)
{
java.lang.String[] v;
org.eclipse.collections.api.factory.list.MutableListFactory v;
java.lang.Integer v;
org.eclipse.collections.api.list.MutableList v, v, v, v;
int v, v, v, v, v;
java.lang.String v, v, v, v, v, v, v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
java.lang.Object v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v := @parameter: org.eclipse.collections.api.list.MutableList;
v := @parameter: java.lang.Integer;
v = <org.eclipse.collections.api.factory.Lists: org.eclipse.collections.api.factory.list.MutableListFactory mutable>;
v = newarray (java.lang.String)[1];
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCube: java.lang.String getLocalDatabasePath()>();
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: java.lang.String tableName>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("#>{\u.\u0001}#");
v[0] = v;
v = interfaceinvoke v.<org.eclipse.collections.api.factory.list.MutableListFactory: org.eclipse.collections.api.list.MutableList 'with'(java.lang.Object[])>(v);
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: org.eclipse.collections.api.list.MutableList withAll(java.lang.Iterable)>(v);
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCube: java.lang.String getLocalRuntimePath()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("from(\u)");
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: org.eclipse.collections.api.list.MutableList 'with'(java.lang.Object)>(v);
if v == null goto label;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
if v < 0 goto label;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: int size()>();
if v >= v goto label;
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: java.lang.Object get(int)>(v);
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: java.lang.String ansiGreen(java.lang.String)>(v);
interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: java.lang.Object set(int,java.lang.Object)>(v, v);
label:
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: java.lang.String makeString(java.lang.String)>("->");
return v;
}
public java.lang.String query(org.eclipse.collections.api.list.MutableList)
{
java.lang.String v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
org.eclipse.collections.api.list.MutableList v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v := @parameter: org.eclipse.collections.api.list.MutableList;
v = specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: java.lang.String query(org.eclipse.collections.api.list.MutableList,java.lang.Integer)>(v, null);
return v;
}
private static java.lang.String printRule(java.lang.String)
{
int v;
java.lang.String v, v, v;
v := @parameter: java.lang.String;
if v == null goto label;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("-- \u ");
goto label;
label:
v = "";
label:
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: int getLineWidth()>();
v = staticinvoke <org.apache.commons.lang.StringUtils: java.lang.String rightPad(java.lang.String,int,java.lang.String)>(v, v, "-");
return v;
}
private void println(java.lang.String)
{
java.lang.String v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
org.finos.legend.engine.repl.client.Client v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v := @parameter: java.lang.String;
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.client.Client client>;
virtualinvoke v.<org.finos.legend.engine.repl.client.Client: void println(java.lang.String)>(v);
return;
}
private void printHeader()
{
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
int v, v, v;
java.lang.String v, v, v, v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: java.lang.String ansiYellow(java.lang.String)>("[>]");
v = virtualinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: int getCurrentStep()>();
v = v + 1;
v = virtualinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: int getStepCount()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,int,int)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u Step \u0001/\u0001");
specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: void println(java.lang.String)>(v);
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: java.lang.String printRule(java.lang.String)>(null);
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: java.lang.String ansiDim(java.lang.String)>(v);
specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: void println(java.lang.String)>(v);
return;
}
private void printCommand(java.lang.String)
{
java.lang.String v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v := @parameter: java.lang.String;
specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: void printCommand(java.lang.String,boolean)>(v, 0);
return;
}
private void printCommand(java.lang.String, boolean)
{
java.lang.String v, v, v, v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
boolean v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v := @parameter: java.lang.String;
v := @parameter: boolean;
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: java.lang.String ansiDim(java.lang.String)>("> ");
if v == 0 goto label;
v = v;
goto label;
label:
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: java.lang.String ansiGreen(java.lang.String)>(v);
label:
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001\u0001");
specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: void println(java.lang.String)>(v);
return;
}
private void printFooter()
{
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
java.lang.String v, v, v, v, v, v, v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: java.lang.String printRule(java.lang.String)>(null);
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: java.lang.String ansiDim(java.lang.String)>(v);
specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: void println(java.lang.String)>(v);
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: java.lang.String ansiYellow(java.lang.String)>("[!]");
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: java.lang.String ansiGreen(java.lang.String)>("datacube walkthrough next");
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u Next Step : Run command \u0001");
specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: void println(java.lang.String)>(v);
v = staticinvoke <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: java.lang.String printRule(java.lang.String)>(null);
v = staticinvoke <org.finos.legend.engine.repl.shared.REPLHelper: java.lang.String ansiDim(java.lang.String)>(v);
specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: void println(java.lang.String)>(v);
return;
}
private void runQuery(java.lang.String)
{
org.finos.legend.engine.repl.relational.RelationalReplExtension v;
org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough v;
org.finos.legend.engine.repl.client.Client v, v, v, v;
org.eclipse.collections.api.list.MutableList v, v;
int v;
java.lang.Object v;
java.lang.String v, v;
org.jline.terminal.Terminal v;
v := @this: org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough;
v := @parameter: java.lang.String;
specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: void println(java.lang.String)>("");
v = specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.relational.RelationalReplExtension getRelationalExtension()>();
v = virtualinvoke v.<org.finos.legend.engine.repl.relational.RelationalReplExtension: int getMaxRowSize()>();
virtualinvoke v.<org.finos.legend.engine.repl.relational.RelationalReplExtension: void setMaxRowSize(int)>(10);
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.client.Client client>;
v = virtualinvoke v.<org.finos.legend.engine.repl.client.Client: org.jline.terminal.Terminal getTerminal()>();
interfaceinvoke v.<org.jline.terminal.Terminal: void flush()>();
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.client.Client client>;
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.client.Client client>;
v = v.<org.finos.legend.engine.repl.client.Client: org.eclipse.collections.api.list.MutableList commands>;
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: org.eclipse.collections.api.list.MutableList selectInstancesOf(java.lang.Class)>(class "Lorg/finos/legend/engine/repl/core/commands/Execute;");
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: java.lang.Object getAny()>();
v = virtualinvoke v.<org.finos.legend.engine.repl.core.commands.Execute: java.lang.String execute(java.lang.String)>(v);
virtualinvoke v.<org.finos.legend.engine.repl.client.Client: void println(java.lang.String)>(v);
v = v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.finos.legend.engine.repl.client.Client client>;
virtualinvoke v.<org.finos.legend.engine.repl.client.Client: void addCommandToHistory(java.lang.String)>(v);
virtualinvoke v.<org.finos.legend.engine.repl.relational.RelationalReplExtension: void setMaxRowSize(int)>(v);
specialinvoke v.<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: void println(java.lang.String)>("");
return;
}
static void <clinit>()
{
java.lang.String[] v, v;
org.eclipse.collections.api.factory.list.MutableListFactory v, v, v, v, v, v;
org.eclipse.collections.api.list.MutableList v, v, v, v, v, v, v, v, v, v, v, v, v, v;
v = <org.eclipse.collections.api.factory.Lists: org.eclipse.collections.api.factory.list.MutableListFactory mutable>;
v = newarray (java.lang.String)[1];
v[0] = "select()";
v = interfaceinvoke v.<org.eclipse.collections.api.factory.list.MutableListFactory: org.eclipse.collections.api.list.MutableList 'with'(java.lang.Object[])>(v);
<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList SELECT_ALL> = v;
v = <org.eclipse.collections.api.factory.Lists: org.eclipse.collections.api.factory.list.MutableListFactory mutable>;
v = newarray (java.lang.String)[1];
v[0] = "filter(x|$x.Year == 2010)";
v = interfaceinvoke v.<org.eclipse.collections.api.factory.list.MutableListFactory: org.eclipse.collections.api.list.MutableList 'with'(java.lang.Object[])>(v);
<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList FILTER> = v;
v = <org.eclipse.collections.api.factory.Lists: org.eclipse.collections.api.factory.list.MutableListFactory mutable>;
v = <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList FILTER>;
v = interfaceinvoke v.<org.eclipse.collections.api.factory.list.MutableListFactory: org.eclipse.collections.api.list.MutableList withAll(java.lang.Iterable)>(v);
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: org.eclipse.collections.api.list.MutableList 'with'(java.lang.Object)>("extend(~Total: x|$x.Gold + $x.Silver + $x.Bronze)");
<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList EXTEND> = v;
v = <org.eclipse.collections.api.factory.Lists: org.eclipse.collections.api.factory.list.MutableListFactory mutable>;
v = <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList EXTEND>;
v = interfaceinvoke v.<org.eclipse.collections.api.factory.list.MutableListFactory: org.eclipse.collections.api.list.MutableList withAll(java.lang.Iterable)>(v);
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: org.eclipse.collections.api.list.MutableList 'with'(java.lang.Object)>("groupBy(~Country, ~Total: x|$x.Total: x|$x->sum())");
<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList GROUP_BY> = v;
v = <org.eclipse.collections.api.factory.Lists: org.eclipse.collections.api.factory.list.MutableListFactory mutable>;
v = <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList GROUP_BY>;
v = interfaceinvoke v.<org.eclipse.collections.api.factory.list.MutableListFactory: org.eclipse.collections.api.list.MutableList withAll(java.lang.Iterable)>(v);
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: org.eclipse.collections.api.list.MutableList 'with'(java.lang.Object)>("sort(~Total->descending())");
<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList SORT> = v;
v = <org.eclipse.collections.api.factory.Lists: org.eclipse.collections.api.factory.list.MutableListFactory mutable>;
v = <org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList SORT>;
v = interfaceinvoke v.<org.eclipse.collections.api.factory.list.MutableListFactory: org.eclipse.collections.api.list.MutableList withAll(java.lang.Iterable)>(v);
v = interfaceinvoke v.<org.eclipse.collections.api.list.MutableList: org.eclipse.collections.api.list.MutableList 'with'(java.lang.Object)>("limit(3)");
<org.finos.legend.engine.repl.dataCube.commands.DataCubeWalkthrough$DataCubeWalkthrough1: org.eclipse.collections.api.list.MutableList LIMIT> = v;
return;
}
}