public class org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor extends org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.AbstractRequestBaseVisitor
{
private static final com.fasterxml.jackson.databind.ObjectMapper PROTOCOL_MAPPER;
private final java.net.URI url;
private final org.finos.legend.engine.plan.execution.nodes.state.ExecutionState executionState;
public void <init>(java.net.URI)
{
java.net.URI v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: java.net.URI;
specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: void <init>(java.net.URI,org.finos.legend.engine.plan.execution.nodes.state.ExecutionState)>(v, null);
return;
}
public void <init>(java.net.URI, org.finos.legend.engine.plan.execution.nodes.state.ExecutionState)
{
java.net.URI v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
org.finos.legend.engine.plan.execution.nodes.state.ExecutionState v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: java.net.URI;
v := @parameter: org.finos.legend.engine.plan.execution.nodes.state.ExecutionState;
specialinvoke v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.AbstractRequestBaseVisitor: void <init>()>();
v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url> = v;
v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: org.finos.legend.engine.plan.execution.nodes.state.ExecutionState executionState> = v;
return;
}
protected org.apache.http.client.methods.HttpUriRequest defaultValue(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.RequestBase)
{
java.lang.UnsupportedOperationException v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.RequestBase v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.RequestBase;
v = new java.lang.UnsupportedOperationException;
specialinvoke v.<java.lang.UnsupportedOperationException: void <init>()>();
throw v;
}
public org.apache.http.client.methods.HttpUriRequest visit(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest)
{
byte[] v;
org.apache.http.client.methods.HttpPost v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$1 v;
java.net.URI v;
boolean v, v;
java.io.PrintWriter v;
org.apache.http.entity.ContentType v;
java.io.Serializable v;
java.io.UncheckedIOException v;
java.util.List v;
java.io.ByteArrayOutputStream v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.WaitForActiveShards v, v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.Refresh v, v;
java.lang.String v, v, v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$EntityWithToString v;
java.util.Iterator v;
com.fasterxml.jackson.databind.ObjectMapper v, v;
java.io.IOException v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression v, v;
java.lang.Object v, v, v, v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest;
label:
v = new java.io.ByteArrayOutputStream;
specialinvoke v.<java.io.ByteArrayOutputStream: void <init>()>();
v = new java.io.PrintWriter;
specialinvoke v.<java.io.PrintWriter: void <init>(java.io.OutputStream,boolean)>(v, 1);
v = 1;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest: java.util.List operations>;
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
if v == 0 goto label;
v = <org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: com.fasterxml.jackson.databind.ObjectMapper PROTOCOL_MAPPER>;
v = virtualinvoke v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression: java.lang.Object getLiteral()>();
v = virtualinvoke v.<com.fasterxml.jackson.databind.ObjectMapper: java.lang.Object convertValue(java.lang.Object,java.lang.Class)>(v, class "Lorg/finos/legend/engine/protocol/store/elasticsearch/v7/specification/global/bulk/OperationBase;");
v = new org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$1;
specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$1: void <init>(org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor)>(v);
v = virtualinvoke v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.OperationBase: java.lang.Object accept(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.OperationBaseVisitor)>(v);
v = 0;
goto label;
label:
v = 1;
label:
v = <org.finos.legend.engine.protocol.store.elasticsearch.v.specification.ElasticsearchObjectMapperProvider: com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER>;
virtualinvoke v.<com.fasterxml.jackson.databind.ObjectMapper: void writeValue(java.io.Writer,java.lang.Object)>(v, v);
virtualinvoke v.<java.io.PrintWriter: void print(char)>(10);
goto label;
label:
virtualinvoke v.<java.io.PrintWriter: void close()>();
v = "/_bulk";
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression index>;
if v == null goto label;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression index>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression,java.lang.String)>(v, "/_bulk") <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");
label:
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.Refresh refresh>;
if v != null goto label;
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(0);
goto label;
label:
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.Refresh refresh>;
v = virtualinvoke v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.Refresh: java.lang.String esName()>();
label:
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.io.Serializable)>(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?refresh=\u0001");
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.WaitForActiveShards wait_for_active_shards>;
if v == null goto label;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.bulk.BulkRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.WaitForActiveShards wait_for_active_shards>;
v = virtualinvoke v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.WaitForActiveShards: java.lang.Object unionValue()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.Object)>(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&wait_for_active_shards=\u0001");
label:
v = new org.apache.http.client.methods.HttpPost;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI,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.apache.http.client.methods.HttpPost: void <init>(java.lang.String)>(v);
v = new org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$EntityWithToString;
v = virtualinvoke v.<java.io.ByteArrayOutputStream: byte[] toByteArray()>();
v = staticinvoke <org.apache.http.entity.ContentType: org.apache.http.entity.ContentType create(java.lang.String)>("application/x-ndjson");
specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$EntityWithToString: void <init>(byte[],org.apache.http.entity.ContentType)>(v, v);
virtualinvoke v.<org.apache.http.client.methods.HttpPost: void setEntity(org.apache.http.HttpEntity)>(v);
label:
return v;
label:
v := @caughtexception;
v = new java.io.UncheckedIOException;
specialinvoke v.<java.io.UncheckedIOException: void <init>(java.io.IOException)>(v);
throw v;
catch java.io.IOException from label to label with label;
}
public org.apache.http.client.methods.HttpUriRequest visit(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.openpointintime.OpenPointInTimeRequest)
{
org.apache.http.client.methods.HttpPost v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.openpointintime.OpenPointInTimeRequest v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
java.util.List v;
java.lang.Object v;
java.lang.String v, v;
java.net.URI v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.Time v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.openpointintime.OpenPointInTimeRequest;
v = new org.apache.http.client.methods.HttpPost;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.openpointintime.OpenPointInTimeRequest: java.util.List index>;
v = staticinvoke <org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.lang.String indexName(java.util.List)>(v);
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.openpointintime.OpenPointInTimeRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.Time keep_alive>;
v = virtualinvoke v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.types.Time: java.lang.Object unionValue()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI,java.lang.String,java.lang.Object)>(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[])>("\u0001/\u0001/_pit?keep_alive=\u0001");
specialinvoke v.<org.apache.http.client.methods.HttpPost: void <init>(java.lang.String)>(v);
return v;
}
private static java.lang.String indexName(java.util.List)
{
java.util.List v;
java.util.stream.Stream v, v;
java.lang.Object v;
java.util.stream.Collector v;
java.util.function.Function v;
v := @parameter: java.util.List;
v = interfaceinvoke v.<java.util.List: java.util.stream.Stream stream()>();
v = staticinvoke <org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$getLiteral__102: java.util.function.Function bootstrap$()>();
v = interfaceinvoke v.<java.util.stream.Stream: java.util.stream.Stream map(java.util.function.Function)>(v);
v = staticinvoke <java.util.stream.Collectors: java.util.stream.Collector joining(java.lang.CharSequence)>(",");
v = interfaceinvoke v.<java.util.stream.Stream: java.lang.Object collect(java.util.stream.Collector)>(v);
return v;
}
public org.apache.http.client.methods.HttpUriRequest visit(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.closepointintime.ClosePointInTimeRequest)
{
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.closepointintime.ClosePointInTimeRequest v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$2 v;
org.apache.http.client.methods.HttpUriRequest v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.closepointintime.ClosePointInTimeRequestBody v;
java.lang.String v;
java.net.URI v, v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.closepointintime.ClosePointInTimeRequest;
v = new org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$2;
specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$2: void <init>(org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor)>(v);
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI)>(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/_pit");
v = staticinvoke <java.net.URI: java.net.URI create(java.lang.String)>(v);
virtualinvoke v.<org.apache.http.client.methods.HttpEntityEnclosingRequestBase: void setURI(java.net.URI)>(v);
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.closepointintime.ClosePointInTimeRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.closepointintime.ClosePointInTimeRequestBody body>;
v = specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: org.apache.http.client.methods.HttpUriRequest setEntity(org.apache.http.client.methods.HttpEntityEnclosingRequestBase,java.lang.Object)>(v, v);
return v;
}
public org.apache.http.client.methods.HttpUriRequest visit(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.count.CountRequest)
{
org.apache.http.client.methods.HttpPost v;
org.apache.http.client.methods.HttpUriRequest v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.count.CountRequest v;
java.util.List v;
java.lang.String v, v;
java.net.URI v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.count.CountRequestBody v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.count.CountRequest;
v = new org.apache.http.client.methods.HttpPost;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.count.CountRequest: java.util.List index>;
v = staticinvoke <org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.lang.String indexName(java.util.List)>(v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI,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/_count");
specialinvoke v.<org.apache.http.client.methods.HttpPost: void <init>(java.lang.String)>(v);
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.count.CountRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.count.CountRequestBody body>;
v = specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: org.apache.http.client.methods.HttpUriRequest setEntity(org.apache.http.client.methods.HttpEntityEnclosingRequestBase,java.lang.Object)>(v, v);
return v;
}
public org.apache.http.client.methods.HttpUriRequest visit(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.create.CreateRequest)
{
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.create.CreateRequest v;
org.apache.http.client.methods.HttpUriRequest v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.create.CreateRequestBody v;
org.apache.http.client.methods.HttpPut v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression v;
java.lang.Object v;
java.lang.String v;
java.net.URI v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.create.CreateRequest;
v = new org.apache.http.client.methods.HttpPut;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.create.CreateRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression index>;
v = virtualinvoke v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression: java.lang.Object getLiteral()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI,java.lang.Object)>(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.apache.http.client.methods.HttpPut: void <init>(java.lang.String)>(v);
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.create.CreateRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.create.CreateRequestBody body>;
v = specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: org.apache.http.client.methods.HttpUriRequest setEntity(org.apache.http.client.methods.HttpEntityEnclosingRequestBase,java.lang.Object)>(v, v);
return v;
}
public org.apache.http.client.methods.HttpUriRequest visit(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.delete.DeleteRequest)
{
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.delete.DeleteRequest v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
org.apache.http.client.methods.HttpDelete v;
java.util.List v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression v, v;
java.lang.String v, v;
java.net.URI v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.delete.DeleteRequest;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.delete.DeleteRequest: java.util.List index>;
v = staticinvoke <org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.lang.String indexName(java.util.List)>(v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI,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");
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.delete.DeleteRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression ignore_unavailable>;
if v == null goto label;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.delete.DeleteRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression ignore_unavailable>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression)>(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?ignore_unavailable=\u0001");
label:
v = new org.apache.http.client.methods.HttpDelete;
specialinvoke v.<org.apache.http.client.methods.HttpDelete: void <init>(java.lang.String)>(v);
return v;
}
public org.apache.http.client.methods.HttpUriRequest visit(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.get.GetRequest)
{
java.util.List v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.get.GetRequest v;
org.apache.http.client.methods.HttpGet v;
java.lang.String v, v;
java.net.URI v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.get.GetRequest;
v = new org.apache.http.client.methods.HttpGet;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.indices.get.GetRequest: java.util.List index>;
v = staticinvoke <org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.lang.String indexName(java.util.List)>(v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI,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.apache.http.client.methods.HttpGet: void <init>(java.lang.String)>(v);
return v;
}
public org.apache.http.client.methods.HttpUriRequest visit(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.index.IndexRequest)
{
org.apache.http.client.methods.HttpPost v;
org.apache.http.client.methods.HttpUriRequest v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
org.apache.http.client.methods.HttpPut v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression v, v, v, v;
java.lang.Object v, v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.index.IndexRequest v;
java.lang.String v, v;
java.net.URI v, v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.index.IndexRequest;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.index.IndexRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression id>;
if v != null goto label;
v = new org.apache.http.client.methods.HttpPost;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.index.IndexRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression index>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI,org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression)>(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/_doc");
specialinvoke v.<org.apache.http.client.methods.HttpPost: void <init>(java.lang.String)>(v);
v = v;
goto label;
label:
v = new org.apache.http.client.methods.HttpPut;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.index.IndexRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression index>;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.index.IndexRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression id>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI,org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression,org.finos.legend.engine.protocol.store.elasticsearch.v.specification.LiteralOrExpression)>(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[])>("\u0001/\u0001/_doc/\u0001");
specialinvoke v.<org.apache.http.client.methods.HttpPut: void <init>(java.lang.String)>(v);
v = v;
label:
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.index.IndexRequest: java.lang.Object document>;
v = specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: org.apache.http.client.methods.HttpUriRequest setEntity(org.apache.http.client.methods.HttpEntityEnclosingRequestBase,java.lang.Object)>(v, v);
return v;
}
public org.apache.http.client.methods.HttpUriRequest visit(org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.search.SearchRequest)
{
org.apache.http.client.methods.HttpPost v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.search.SearchRequestBody v;
org.apache.http.client.methods.HttpUriRequest v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
java.util.List v;
java.lang.String v, v;
java.net.URI v;
org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.search.SearchRequest v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.search.SearchRequest;
v = new org.apache.http.client.methods.HttpPost;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.net.URI url>;
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.search.SearchRequest: java.util.List index>;
v = staticinvoke <org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: java.lang.String indexName(java.util.List)>(v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.net.URI,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/_search?typed_keys=true");
specialinvoke v.<org.apache.http.client.methods.HttpPost: void <init>(java.lang.String)>(v);
v = v.<org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.search.SearchRequest: org.finos.legend.engine.protocol.store.elasticsearch.v.specification.global.search.SearchRequestBody body>;
v = specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: org.apache.http.client.methods.HttpUriRequest setEntity(org.apache.http.client.methods.HttpEntityEnclosingRequestBase,java.lang.Object)>(v, v);
return v;
}
private org.apache.http.client.methods.HttpUriRequest setEntity(org.apache.http.client.methods.HttpEntityEnclosingRequestBase, java.lang.Object)
{
byte[] v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$EntityWithToString v;
org.apache.http.client.methods.HttpEntityEnclosingRequestBase v;
com.fasterxml.jackson.databind.ObjectWriter v;
org.finos.legend.engine.plan.execution.nodes.state.ExecutionState v, v;
com.fasterxml.jackson.databind.ObjectMapper v;
org.apache.http.entity.ContentType v;
java.io.IOException v;
org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor v;
java.io.UncheckedIOException v;
java.nio.charset.Charset v;
java.lang.Object v;
java.lang.String v, v;
v := @this: org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor;
v := @parameter: org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
v := @parameter: java.lang.Object;
label:
v = <org.finos.legend.engine.protocol.store.elasticsearch.v.specification.ElasticsearchObjectMapperProvider: com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER>;
v = virtualinvoke v.<com.fasterxml.jackson.databind.ObjectMapper: com.fasterxml.jackson.databind.ObjectWriter writerWithDefaultPrettyPrinter()>();
v = virtualinvoke v.<com.fasterxml.jackson.databind.ObjectWriter: java.lang.String writeValueAsString(java.lang.Object)>(v);
v = v;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: org.finos.legend.engine.plan.execution.nodes.state.ExecutionState executionState>;
if v == null goto label;
v = v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: org.finos.legend.engine.plan.execution.nodes.state.ExecutionState executionState>;
v = staticinvoke <org.finos.legend.engine.plan.execution.nodes.helpers.freemarker.FreeMarkerExecutor: java.lang.String process(java.lang.String,org.finos.legend.engine.plan.execution.nodes.state.ExecutionState)>(v, v);
label:
v = new org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$EntityWithToString;
v = <java.nio.charset.StandardCharsets: java.nio.charset.Charset UTF_8>;
v = virtualinvoke v.<java.lang.String: byte[] getBytes(java.nio.charset.Charset)>(v);
v = <org.apache.http.entity.ContentType: org.apache.http.entity.ContentType APPLICATION_JSON>;
specialinvoke v.<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor$EntityWithToString: void <init>(byte[],org.apache.http.entity.ContentType)>(v, v);
virtualinvoke v.<org.apache.http.client.methods.HttpEntityEnclosingRequestBase: void setEntity(org.apache.http.HttpEntity)>(v);
label:
return v;
label:
v := @caughtexception;
v = new java.io.UncheckedIOException;
specialinvoke v.<java.io.UncheckedIOException: void <init>(java.io.IOException)>(v);
throw v;
catch java.io.IOException from label to label with label;
}
static void <clinit>()
{
com.fasterxml.jackson.databind.ObjectMapper v;
v = staticinvoke <org.finos.legend.engine.shared.core.ObjectMapperFactory: com.fasterxml.jackson.databind.ObjectMapper getNewStandardObjectMapper()>();
<org.finos.legend.engine.plan.execution.stores.elasticsearch.v.http.ElasticsearchV7RequestToHttpRequestVisitor: com.fasterxml.jackson.databind.ObjectMapper PROTOCOL_MAPPER> = v;
return;
}
}