com.groupbyinc.flux.common.util.AbstractBigArray.class Maven / Gradle / Ivy
???? 4 ? 0com/groupbyinc/flux/common/util/AbstractBigArray -com/groupbyinc/flux/common/util/AbstractArray AbstractBigArray.java .com/groupbyinc/flux/common/recycler/Recycler$V ,com/groupbyinc/flux/common/recycler/Recycler V recycler 3Lcom/groupbyinc/flux/common/util/PageCacheRecycler; cache 1[Lcom/groupbyinc/flux/common/recycler/Recycler$V; 4[Lcom/groupbyinc/flux/common/recycler/Recycler$V<*>; pageShift I pageMask size J $assertionsDisabled Z 0(ILcom/groupbyinc/flux/common/util/BigArrays;Z)V /(Lcom/groupbyinc/flux/common/util/BigArrays;Z)V
)com/groupbyinc/flux/common/util/BigArrays "java/lang/IllegalArgumentException ! pageSize must be >= 128 # (Ljava/lang/String;)V %
" & pageSize must be a power of two ( java/lang/Integer * numberOfTrailingZeros (I)I , -
+ . 0 2 4
6 this 2Lcom/groupbyinc/flux/common/util/AbstractBigArray; pageSize bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays;
clearOnResize numPages (J)I ??? java/lang/StringBuilder B ()V D
C E pageSize= G append -(Ljava/lang/String;)Ljava/lang/StringBuilder; I J
C K (I)Ljava/lang/StringBuilder; I M
C N $ is too small for such as capacity: P (J)Ljava/lang/StringBuilder; I R
C S toString ()Ljava/lang/String; U V
C W capacity ()I pageIndex index indexInPage ()J resize (J)V numBytesPerElement ramBytesUsed ramBytesEstimated (J)J c d
e [ ?
g : Z
i a Z
k grow )([Ljava/lang/Object;I)[Ljava/lang/Object; ?com/groupbyinc/flux/common/apache/lucene/util/RamUsageEstimator o NUM_BYTES_OBJECT_REF q p r 7com/groupbyinc/flux/common/apache/lucene/util/ArrayUtil t oversize (II)I v w
u x java/util/Arrays z copyOf | n
{ } newLen array [TT; [Ljava/lang/Object; minSize registerNewPage F(Lcom/groupbyinc/flux/common/recycler/Recycler$V;II)Ljava/lang/Object; m n
? ? java/lang/AssertionError ?
? E v ()Ljava/lang/Object; ? ? ? java/lang/reflect/Array ? getLength (Ljava/lang/Object;)I ? ?
? ? 5Lcom/groupbyinc/flux/common/recycler/Recycler$V; 0Lcom/groupbyinc/flux/common/recycler/Recycler$V; page expectedSize newBytePage (I)[B = ? 1com/groupbyinc/flux/common/util/PageCacheRecycler ? bytePage 3(Z)Lcom/groupbyinc/flux/common/recycler/Recycler$V; ? ?
? ? ? ?
? [B ? 4Lcom/groupbyinc/flux/common/recycler/Recycler$V<[B>;
newIntPage (I)[I intPage ? ?
? ? [I ? 4Lcom/groupbyinc/flux/common/recycler/Recycler$V<[I>; newLongPage (I)[J longPage ? ?
? ? [J ? 4Lcom/groupbyinc/flux/common/recycler/Recycler$V<[J>;
newObjectPage (I)[Ljava/lang/Object;
objectPage 2()Lcom/groupbyinc/flux/common/recycler/Recycler$V; ? ?
? ? OBJECT_PAGE_SIZE ? ? ? java/lang/Object ? ELcom/groupbyinc/flux/common/recycler/Recycler$V<[Ljava/lang/Object;>; releasePage (I)V close ? D ? doClose ,com/groupbyinc/flux/common/lease/Releasables ? 1([Lcom/groupbyinc/flux/common/lease/Releasable;)V ? ?
? ? java/lang/Class ? desiredAssertionStatus ()Z ? ?
? ? Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable !([TT;I)[TT; R(Lcom/groupbyinc/flux/common/recycler/Recycler$V;II)TT;
SourceFile InnerClasses
? ? ? ^*,? *,? ? ??
? "Y$? '?d~?
? "Y)? '?*? /? 1*d? 3* ? 5*? ? *? ? 7? *? 7? ? * ^ 8 9 ^ : ^ ; <