public class oadd.org.apache.drill.exec.util.EncodedSchemaPathSet extends java.lang.Object
{
private static final int ESTIMATED_ENCODED_SIZE;
private static final java.lang.String ENC_PREFIX;
private static final java.lang.String ENC_FORMAT_STRING;
private static final int ENC_PREFIX_SIZE;
private static final int MAX_ENC_IDENTIFIER_SIZE;
private static final int MAX_ENC_IDENTIFIER_COUNT;
private static final org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding CODEC;
public static final java.lang.String ENCODED_STAR_COLUMN;
private static final java.lang.String UTF_8;
static final boolean $assertionsDisabled;
public void <init>()
{
oadd.org.apache.drill.exec.util.EncodedSchemaPathSet v;
v := @this: oadd.org.apache.drill.exec.util.EncodedSchemaPathSet;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
private static byte[] encodeUTF(java.lang.String)
{
byte[] v;
oadd.org.apache.drill.common.exceptions.DrillRuntimeException v;
java.lang.String v;
java.io.UnsupportedEncodingException v;
v := @parameter: java.lang.String;
label:
v = virtualinvoke v.<java.lang.String: byte[] getBytes(java.lang.String)>("utf-8");
label:
return v;
label:
v := @caughtexception;
v = new oadd.org.apache.drill.common.exceptions.DrillRuntimeException;
specialinvoke v.<oadd.org.apache.drill.common.exceptions.DrillRuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
catch java.io.UnsupportedEncodingException from label to label with label;
}
private static java.lang.String decodeUTF(byte[])
{
byte[] v;
oadd.org.apache.drill.common.exceptions.DrillRuntimeException v;
java.lang.String v;
java.io.UnsupportedEncodingException v;
v := @parameter: byte[];
label:
v = new java.lang.String;
specialinvoke v.<java.lang.String: void <init>(byte[],java.lang.String)>(v, "utf-8");
label:
return v;
label:
v := @caughtexception;
v = new oadd.org.apache.drill.common.exceptions.DrillRuntimeException;
specialinvoke v.<oadd.org.apache.drill.common.exceptions.DrillRuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
catch java.io.UnsupportedEncodingException from label to label with label;
}
private static java.lang.String decodeUTF(byte[], int, int)
{
byte[] v;
int v, v;
oadd.org.apache.drill.common.exceptions.DrillRuntimeException v;
java.lang.String v;
java.io.UnsupportedEncodingException v;
v := @parameter: byte[];
v := @parameter: int;
v := @parameter: int;
label:
v = new java.lang.String;
specialinvoke v.<java.lang.String: void <init>(byte[],int,int,java.lang.String)>(v, v, v, "utf-8");
label:
return v;
label:
v := @caughtexception;
v = new oadd.org.apache.drill.common.exceptions.DrillRuntimeException;
specialinvoke v.<oadd.org.apache.drill.common.exceptions.DrillRuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
catch java.io.UnsupportedEncodingException from label to label with label;
}
public static transient java.lang.String[] encode(java.lang.String[])
{
byte[] v, v;
java.lang.Object[] v;
java.lang.String[] v, v;
org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding v;
java.lang.AssertionError v;
int v, v, v, v, v;
java.lang.String v, v, v;
boolean v, v, v;
oadd.org.apache.drill.exec.util.EncodedSchemaPathSet$NoCopyByteArrayOutputStream v;
v := @parameter: java.lang.String[];
if v == null goto label;
v = lengthof v;
if v <= 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <org.apache.drill.shaded.guava.com.google.common.base.Preconditions: void checkArgument(boolean,java.lang.Object)>(v, "At least one schema path should be provided");
v = new oadd.org.apache.drill.exec.util.EncodedSchemaPathSet$NoCopyByteArrayOutputStream;
specialinvoke v.<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet$NoCopyByteArrayOutputStream: void <init>(int)>(1024);
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
virtualinvoke v.<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet$NoCopyByteArrayOutputStream: void write(int)>(0);
v = staticinvoke <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: byte[] encodeUTF(java.lang.String)>(v);
virtualinvoke v.<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet$NoCopyByteArrayOutputStream: void write(byte[])>(v);
v = v + 1;
goto label;
label:
virtualinvoke v.<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet$NoCopyByteArrayOutputStream: void close()>();
v = virtualinvoke v.<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet$NoCopyByteArrayOutputStream: int size()>();
v = v - 1;
v = <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding CODEC>;
v = virtualinvoke v.<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet$NoCopyByteArrayOutputStream: byte[] getBuffer()>();
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding: java.lang.String encode(byte[],int,int)>(v, 1, v);
v = <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: boolean $assertionsDisabled>;
if v != 0 goto label;
v = virtualinvoke v.<java.lang.String: boolean endsWith(java.lang.String)>("=");
if v == 0 goto label;
v = new java.lang.AssertionError;
v = newarray (java.lang.Object)[1];
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("Encoded string \'%s\' ends with \'=\'", v);
specialinvoke v.<java.lang.AssertionError: void <init>(java.lang.Object)>(v);
throw v;
label:
v = staticinvoke <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: java.lang.String[] splitIdentifiers(java.lang.String)>(v);
return v;
}
public static boolean isEncodedSchemaPath(oadd.org.apache.drill.common.expression.SchemaPath)
{
oadd.org.apache.drill.common.expression.SchemaPath v;
oadd.org.apache.drill.common.expression.PathSegment$NameSegment v, v;
java.lang.String v;
boolean v, v;
v := @parameter: oadd.org.apache.drill.common.expression.SchemaPath;
if v == null goto label;
v = virtualinvoke v.<oadd.org.apache.drill.common.expression.SchemaPath: oadd.org.apache.drill.common.expression.PathSegment$NameSegment getRootSegment()>();
v = virtualinvoke v.<oadd.org.apache.drill.common.expression.PathSegment$NameSegment: oadd.org.apache.drill.common.expression.PathSegment$NameSegment getNameSegment()>();
v = virtualinvoke v.<oadd.org.apache.drill.common.expression.PathSegment$NameSegment: java.lang.String getPath()>();
v = staticinvoke <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: boolean isEncodedSchemaPath(java.lang.String)>(v);
if v == 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public static boolean isEncodedSchemaPath(java.lang.String)
{
java.lang.String v;
boolean v, v;
v := @parameter: java.lang.String;
if v == null goto label;
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("$$ENC");
if v == 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public static java.util.Collection decode(java.util.Collection)
{
org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList$Builder v;
java.lang.String[] v, v;
oadd.org.apache.drill.common.expression.SchemaPath v, v;
int v, v, v, v, v;
java.lang.String v, v, v, v, v, v;
boolean v, v, v;
java.util.Iterator v;
java.util.Collection v;
org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList v;
java.lang.Object v;
v := @parameter: java.util.Collection;
v = interfaceinvoke v.<java.util.Collection: int size()>();
v = newarray (java.lang.String)[v];
v = interfaceinvoke v.<java.util.Collection: java.util.Iterator iterator()>();
v = 0;
label:
v = lengthof v;
if v >= v goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = virtualinvoke v.<oadd.org.apache.drill.common.expression.SchemaPath: java.lang.String getRootSegmentPath()>();
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("$$ENC");
if v == 0 goto label;
v = virtualinvoke v.<oadd.org.apache.drill.common.expression.SchemaPath: java.lang.String getRootSegmentPath()>();
v[v] = v;
goto label;
label:
v = virtualinvoke v.<oadd.org.apache.drill.common.expression.SchemaPath: java.lang.String toExpr()>();
v[v] = v;
label:
v = v + 1;
goto label;
label:
v = staticinvoke <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: java.lang.String[] decode(java.lang.String[])>(v);
if v != v goto label;
return v;
label:
v = new org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList$Builder;
specialinvoke v.<org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList$Builder: void <init>()>();
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = "*";
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>(v);
if v != 0 goto label;
v = "`*`";
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
label:
v = <oadd.org.apache.drill.common.expression.SchemaPath: oadd.org.apache.drill.common.expression.SchemaPath STAR_COLUMN>;
virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList$Builder: org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList$Builder add(java.lang.Object)>(v);
goto label;
label:
v = staticinvoke <oadd.org.apache.drill.common.expression.SchemaPath: oadd.org.apache.drill.common.expression.SchemaPath parseFromString(java.lang.String)>(v);
virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList$Builder: org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList$Builder add(java.lang.Object)>(v);
label:
v = v + 1;
goto label;
label:
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList$Builder: org.apache.drill.shaded.guava.com.google.common.collect.ImmutableList build()>();
return v;
}
public static transient java.lang.String[] decode(java.lang.String[])
{
byte[] v;
org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding v;
byte v;
boolean v, v, v;
java.util.List v;
java.lang.StringBuilder v;
java.lang.Object[] v, v;
java.lang.String[] v, v;
java.util.ArrayList v;
int v, v, v, v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v, v, v;
oadd.org.apache.drill.common.exceptions.DrillRuntimeException v;
java.lang.IllegalArgumentException v;
v := @parameter: java.lang.String[];
if v == null goto label;
v = lengthof v;
if v <= 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <org.apache.drill.shaded.guava.com.google.common.base.Preconditions: void checkArgument(boolean,java.lang.Object)>(v, "At least one encoded path should be provided");
v = new java.lang.StringBuilder;
specialinvoke v.<java.lang.StringBuilder: void <init>(int)>(1024);
staticinvoke <java.util.Arrays: void sort(java.lang.Object[])>(v);
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.collect.Lists: java.util.ArrayList newArrayList()>();
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("$$ENC");
if v == 0 goto label;
v = <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: int ENC_PREFIX_SIZE>;
v = virtualinvoke v.<java.lang.String: int length()>();
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.CharSequence,int,int)>(v, v, v);
goto label;
label:
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
label:
v = v + 1;
goto label;
label:
v = virtualinvoke v.<java.lang.StringBuilder: int length()>();
if v <= 0 goto label;
label:
v = <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding CODEC>;
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding: byte[] decode(java.lang.CharSequence)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new oadd.org.apache.drill.common.exceptions.DrillRuntimeException;
v = newarray (java.lang.Object)[1];
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("Unable to decode the input strings as encoded schema paths:\n%s", v);
specialinvoke v.<oadd.org.apache.drill.common.exceptions.DrillRuntimeException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
label:
v = 0;
v = 0;
label:
v = lengthof v;
if v >= v goto label;
v = v[v];
if v != 0 goto label;
v = v - v;
if v <= 0 goto label;
v = v - v;
v = staticinvoke <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: java.lang.String decodeUTF(byte[],int,int)>(v, v, v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = v + 1;
label:
v = v + 1;
goto label;
label:
v = v - v;
if v <= 0 goto label;
v = v - v;
v = staticinvoke <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: java.lang.String decodeUTF(byte[],int,int)>(v, v, v);
v = virtualinvoke v.<java.lang.String: java.lang.String trim()>();
v = virtualinvoke v.<java.lang.String: boolean isEmpty()>();
if v != 0 goto label;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
label:
v = interfaceinvoke v.<java.util.List: int size()>();
v = newarray (java.lang.String)[v];
v = interfaceinvoke v.<java.util.List: java.lang.Object[] toArray(java.lang.Object[])>(v);
return v;
label:
return v;
catch java.lang.IllegalArgumentException from label to label with label;
}
private static java.lang.String[] splitIdentifiers(java.lang.String)
{
java.lang.Object[] v, v, v;
java.lang.String[] v, v;
java.lang.Integer v, v;
int v, v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v, v, v;
double v, v;
oadd.org.apache.drill.common.exceptions.DrillRuntimeException v;
v := @parameter: java.lang.String;
v = virtualinvoke v.<java.lang.String: int length()>();
v = <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: int MAX_ENC_IDENTIFIER_SIZE>;
if v >= v goto label;
v = newarray (java.lang.String)[1];
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(0);
v[0] = v;
v[1] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("$$ENC%02d%s", v);
v[0] = v;
return v;
label:
v = virtualinvoke v.<java.lang.String: int length()>();
v = <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: int MAX_ENC_IDENTIFIER_SIZE>;
v = v / v;
v = staticinvoke <java.lang.Math: double ceil(double)>(v);
if v <= 100 goto label;
v = new oadd.org.apache.drill.common.exceptions.DrillRuntimeException;
v = newarray (java.lang.Object)[1];
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("Encoded size of the SchemaPath identifier \'%s\' exceeded maximum value.", v);
specialinvoke v.<oadd.org.apache.drill.common.exceptions.DrillRuntimeException: void <init>(java.lang.String)>(v);
throw v;
label:
v = newarray (java.lang.String)[v];
v = 0;
v = 0;
label:
v = lengthof v;
if v >= v goto label;
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
v = virtualinvoke v.<java.lang.String: int length()>();
v = <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: int MAX_ENC_IDENTIFIER_SIZE>;
v = v + v;
v = staticinvoke <java.lang.Math: int min(int,int)>(v, v);
v = virtualinvoke v.<java.lang.String: java.lang.String substring(int,int)>(v, v);
v[1] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("$$ENC%02d%s", v);
v[v] = v;
v = v + 1;
v = <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: int MAX_ENC_IDENTIFIER_SIZE>;
v = v + v;
goto label;
label:
return v;
}
static void <clinit>()
{
java.lang.String[] v, v;
org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding v, v;
int v, v, v, v, v;
java.lang.Class v;
java.lang.String v, v, v;
boolean v, v;
v = class "Loadd/org/apache/drill/exec/util/EncodedSchemaPathSet;";
v = virtualinvoke v.<java.lang.Class: boolean desiredAssertionStatus()>();
if v != 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: boolean $assertionsDisabled> = v;
v = "$$ENC";
v = virtualinvoke v.<java.lang.String: int length()>();
v = "00";
v = virtualinvoke v.<java.lang.String: int length()>();
v = v + v;
<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: int ENC_PREFIX_SIZE> = v;
v = <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: int ENC_PREFIX_SIZE>;
v = 1024 - v;
<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: int MAX_ENC_IDENTIFIER_SIZE> = v;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding: org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding base32()>();
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding: org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding omitPadding()>();
<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: org.apache.drill.shaded.guava.com.google.common.io.BaseEncoding CODEC> = v;
v = newarray (java.lang.String)[1];
v[0] = "*";
v = staticinvoke <oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: java.lang.String[] encode(java.lang.String[])>(v);
v = v[0];
<oadd.org.apache.drill.exec.util.EncodedSchemaPathSet: java.lang.String ENCODED_STAR_COLUMN> = v;
return;
}
}