public class org.iq.leveldb.impl.Level extends java.lang.Object implements org.iq.leveldb.impl.SeekingIterable
{
private final org.iq.leveldb.impl.TableCache tableCache;
private final org.iq.leveldb.impl.InternalKeyComparator internalKeyComparator;
private final java.util.List files;
public static final java.util.Comparator NEWEST_FIRST;
public void <init>(java.util.List, org.iq.leveldb.impl.TableCache, org.iq.leveldb.impl.InternalKeyComparator)
{
java.util.List v;
org.iq.leveldb.impl.Level v;
org.iq.leveldb.impl.InternalKeyComparator v;
org.iq.leveldb.impl.TableCache v;
java.util.ArrayList v;
v := @this: org.iq.leveldb.impl.Level;
v := @parameter: java.util.List;
v := @parameter: org.iq.leveldb.impl.TableCache;
v := @parameter: org.iq.leveldb.impl.InternalKeyComparator;
specialinvoke v.<java.lang.Object: void <init>()>();
staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object,java.lang.Object)>(v, "files is null");
staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object,java.lang.Object)>(v, "tableCache is null");
staticinvoke <com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object,java.lang.Object)>(v, "internalKeyComparator is null");
v = staticinvoke <com.google.common.collect.Lists: java.util.ArrayList newArrayList(java.lang.Iterable)>(v);
v.<org.iq.leveldb.impl.Level0: java.util.List files> = v;
v.<org.iq.leveldb.impl.Level0: org.iq.leveldb.impl.TableCache tableCache> = v;
v.<org.iq.leveldb.impl.Level0: org.iq.leveldb.impl.InternalKeyComparator internalKeyComparator> = v;
return;
}
public int getLevelNumber()
{
org.iq.leveldb.impl.Level v;
v := @this: org.iq.leveldb.impl.Level;
return 0;
}
public java.util.List getFiles()
{
java.util.List v;
org.iq.leveldb.impl.Level v;
v := @this: org.iq.leveldb.impl.Level;
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
return v;
}
public org.iq.leveldb.util.Level0Iterator iterator()
{
java.util.List v;
org.iq.leveldb.impl.Level v;
org.iq.leveldb.impl.InternalKeyComparator v;
org.iq.leveldb.impl.TableCache v;
org.iq.leveldb.util.Level0Iterator v;
v := @this: org.iq.leveldb.impl.Level;
v = new org.iq.leveldb.util.Level0Iterator;
v = v.<org.iq.leveldb.impl.Level0: org.iq.leveldb.impl.TableCache tableCache>;
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
v = v.<org.iq.leveldb.impl.Level0: org.iq.leveldb.impl.InternalKeyComparator internalKeyComparator>;
specialinvoke v.<org.iq.leveldb.util.Level0Iterator: void <init>(org.iq.leveldb.impl.TableCache,java.util.List,java.util.Comparator)>(v, v, v);
return v;
}
public org.iq.leveldb.impl.LookupResult get(org.iq.leveldb.impl.LookupKey, org.iq.leveldb.impl.ReadStats)
{
org.iq.leveldb.impl.FileMetaData v;
org.iq.leveldb.util.Slice v, v, v, v, v, v, v;
org.iq.leveldb.table.UserComparator v, v;
boolean v, v, v, v, v, v;
org.iq.leveldb.impl.Level v;
java.util.List v, v, v;
java.lang.Object[] v;
org.iq.leveldb.util.InternalTableIterator v;
java.util.ArrayList v;
java.nio.charset.Charset v;
org.iq.leveldb.impl.InternalKey v, v, v;
int v, v, v;
java.lang.String v;
org.iq.leveldb.impl.TableCache v;
java.util.Map$Entry v;
org.iq.leveldb.impl.ValueType v, v, v, v;
java.util.Iterator v, v;
org.iq.leveldb.impl.LookupKey v;
org.iq.leveldb.impl.ReadStats v;
org.iq.leveldb.impl.InternalKeyComparator v, v;
org.iq.leveldb.impl.LookupResult v, v;
java.lang.Object v, v, v, v;
java.util.Comparator v;
v := @this: org.iq.leveldb.impl.Level;
v := @parameter: org.iq.leveldb.impl.LookupKey;
v := @parameter: org.iq.leveldb.impl.ReadStats;
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v == 0 goto label;
return null;
label:
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = staticinvoke <com.google.common.collect.Lists: java.util.ArrayList newArrayListWithCapacity(int)>(v);
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
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()>();
v = v.<org.iq.leveldb.impl.Level0: org.iq.leveldb.impl.InternalKeyComparator internalKeyComparator>;
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKeyComparator: org.iq.leveldb.table.UserComparator getUserComparator()>();
v = virtualinvoke v.<org.iq.leveldb.impl.LookupKey: org.iq.leveldb.util.Slice getUserKey()>();
v = virtualinvoke v.<org.iq.leveldb.impl.FileMetaData: org.iq.leveldb.impl.InternalKey getSmallest()>();
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKey: org.iq.leveldb.util.Slice getUserKey()>();
v = interfaceinvoke v.<org.iq.leveldb.table.UserComparator: int compare(java.lang.Object,java.lang.Object)>(v, v);
if v < 0 goto label;
v = v.<org.iq.leveldb.impl.Level0: org.iq.leveldb.impl.InternalKeyComparator internalKeyComparator>;
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKeyComparator: org.iq.leveldb.table.UserComparator getUserComparator()>();
v = virtualinvoke v.<org.iq.leveldb.impl.LookupKey: org.iq.leveldb.util.Slice getUserKey()>();
v = virtualinvoke v.<org.iq.leveldb.impl.FileMetaData: org.iq.leveldb.impl.InternalKey getLargest()>();
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKey: org.iq.leveldb.util.Slice getUserKey()>();
v = interfaceinvoke v.<org.iq.leveldb.table.UserComparator: int compare(java.lang.Object,java.lang.Object)>(v, v);
if v > 0 goto label;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
v = <org.iq.leveldb.impl.Level0: java.util.Comparator NEWEST_FIRST>;
staticinvoke <java.util.Collections: void sort(java.util.List,java.util.Comparator)>(v, v);
virtualinvoke v.<org.iq.leveldb.impl.ReadStats: void clear()>();
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()>();
v = v.<org.iq.leveldb.impl.Level0: org.iq.leveldb.impl.TableCache tableCache>;
v = virtualinvoke v.<org.iq.leveldb.impl.TableCache: org.iq.leveldb.util.InternalTableIterator newIterator(org.iq.leveldb.impl.FileMetaData)>(v);
v = virtualinvoke v.<org.iq.leveldb.impl.LookupKey: org.iq.leveldb.impl.InternalKey getInternalKey()>();
virtualinvoke v.<org.iq.leveldb.util.InternalTableIterator: void seek(java.lang.Object)>(v);
v = virtualinvoke v.<org.iq.leveldb.util.InternalTableIterator: boolean hasNext()>();
if v == 0 goto label;
v = virtualinvoke v.<org.iq.leveldb.util.InternalTableIterator: java.util.Map$Entry next()>();
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
if v == null goto label;
v = 1;
goto label;
label:
v = 0;
label:
v = newarray (java.lang.Object)[1];
v = virtualinvoke v.<org.iq.leveldb.impl.LookupKey: org.iq.leveldb.util.Slice getUserKey()>();
v = <com.google.common.base.Charsets: java.nio.charset.Charset UTF_8>;
v = virtualinvoke v.<org.iq.leveldb.util.Slice: java.lang.String toString(java.nio.charset.Charset)>(v);
v[0] = v;
staticinvoke <com.google.common.base.Preconditions: void checkState(boolean,java.lang.String,java.lang.Object[])>(v, "Corrupt key for %s", v);
v = virtualinvoke v.<org.iq.leveldb.impl.LookupKey: org.iq.leveldb.util.Slice getUserKey()>();
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKey: org.iq.leveldb.util.Slice getUserKey()>();
v = virtualinvoke v.<org.iq.leveldb.util.Slice: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKey: org.iq.leveldb.impl.ValueType getValueType()>();
v = <org.iq.leveldb.impl.ValueType: org.iq.leveldb.impl.ValueType DELETION>;
if v != v goto label;
v = staticinvoke <org.iq.leveldb.impl.LookupResult: org.iq.leveldb.impl.LookupResult deleted(org.iq.leveldb.impl.LookupKey)>(v);
return v;
label:
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKey: org.iq.leveldb.impl.ValueType getValueType()>();
v = <org.iq.leveldb.impl.ValueType: org.iq.leveldb.impl.ValueType VALUE>;
if v != v goto label;
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getValue()>();
v = staticinvoke <org.iq.leveldb.impl.LookupResult: org.iq.leveldb.impl.LookupResult ok(org.iq.leveldb.impl.LookupKey,org.iq.leveldb.util.Slice)>(v, v);
return v;
label:
v = virtualinvoke v.<org.iq.leveldb.impl.ReadStats: org.iq.leveldb.impl.FileMetaData getSeekFile()>();
if v != null goto label;
virtualinvoke v.<org.iq.leveldb.impl.ReadStats: void setSeekFile(org.iq.leveldb.impl.FileMetaData)>(v);
virtualinvoke v.<org.iq.leveldb.impl.ReadStats: void setSeekFileLevel(int)>(0);
goto label;
label:
return null;
}
public boolean someFileOverlapsRange(org.iq.leveldb.util.Slice, org.iq.leveldb.util.Slice)
{
org.iq.leveldb.util.Slice v, v, v;
org.iq.leveldb.impl.InternalKey v, v;
org.iq.leveldb.table.UserComparator v;
int v, v, v;
boolean v;
org.iq.leveldb.impl.ValueType v;
org.iq.leveldb.impl.Level v;
org.iq.leveldb.impl.InternalKeyComparator v;
java.util.List v, v;
java.lang.Object v;
v := @this: org.iq.leveldb.impl.Level;
v := @parameter: org.iq.leveldb.util.Slice;
v := @parameter: org.iq.leveldb.util.Slice;
v = new org.iq.leveldb.impl.InternalKey;
v = <org.iq.leveldb.impl.ValueType: org.iq.leveldb.impl.ValueType VALUE>;
specialinvoke v.<org.iq.leveldb.impl.InternalKey: void <init>(org.iq.leveldb.util.Slice,long,org.iq.leveldb.impl.ValueType)>(v, 72057594037927935L, v);
v = specialinvoke v.<org.iq.leveldb.impl.Level0: int findFile(org.iq.leveldb.impl.InternalKey)>(v);
v = v.<org.iq.leveldb.impl.Level0: org.iq.leveldb.impl.InternalKeyComparator internalKeyComparator>;
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKeyComparator: org.iq.leveldb.table.UserComparator getUserComparator()>();
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
v = interfaceinvoke v.<java.util.List: int size()>();
if v >= v goto label;
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<org.iq.leveldb.impl.FileMetaData: org.iq.leveldb.impl.InternalKey getSmallest()>();
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKey: org.iq.leveldb.util.Slice getUserKey()>();
v = interfaceinvoke v.<org.iq.leveldb.table.UserComparator: int compare(java.lang.Object,java.lang.Object)>(v, v);
if v < 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
private int findFile(org.iq.leveldb.impl.InternalKey)
{
org.iq.leveldb.impl.InternalKey v, v;
int v, v, v, v, v, v, v;
boolean v;
org.iq.leveldb.impl.Level v;
org.iq.leveldb.impl.InternalKeyComparator v;
java.util.List v, v, v, v;
java.lang.Object v;
v := @this: org.iq.leveldb.impl.Level;
v := @parameter: org.iq.leveldb.impl.InternalKey;
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v == 0 goto label;
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
v = interfaceinvoke v.<java.util.List: int size()>();
return v;
label:
v = 0;
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
v = interfaceinvoke v.<java.util.List: int size()>();
v = v - 1;
label:
if v >= v goto label;
v = v + v;
v = v / 2;
v = v.<org.iq.leveldb.impl.Level0: org.iq.leveldb.impl.InternalKeyComparator internalKeyComparator>;
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<org.iq.leveldb.impl.FileMetaData: org.iq.leveldb.impl.InternalKey getLargest()>();
v = virtualinvoke v.<org.iq.leveldb.impl.InternalKeyComparator: int compare(org.iq.leveldb.impl.InternalKey,org.iq.leveldb.impl.InternalKey)>(v, v);
if v >= 0 goto label;
v = v + 1;
goto label;
label:
v = v;
goto label;
label:
return v;
}
public void addFile(org.iq.leveldb.impl.FileMetaData)
{
org.iq.leveldb.impl.FileMetaData v;
java.util.List v;
org.iq.leveldb.impl.Level v;
v := @this: org.iq.leveldb.impl.Level;
v := @parameter: org.iq.leveldb.impl.FileMetaData;
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
return;
}
public java.lang.String toString()
{
java.util.List v;
org.iq.leveldb.impl.Level v;
java.lang.StringBuilder v, v;
java.lang.String v;
v := @this: org.iq.leveldb.impl.Level;
v = new java.lang.StringBuilder;
specialinvoke v.<java.lang.StringBuilder: void <init>()>();
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>("Level0");
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>("{files=");
v = v.<org.iq.leveldb.impl.Level0: java.util.List files>;
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.Object)>(v);
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(char)>(125);
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.String toString()>();
return v;
}
static void <clinit>()
{
org.iq.leveldb.impl.Level0$1 v;
v = new org.iq.leveldb.impl.Level0$1;
specialinvoke v.<org.iq.leveldb.impl.Level0$1: void <init>()>();
<org.iq.leveldb.impl.Level0: java.util.Comparator NEWEST_FIRST> = v;
return;
}
}