
com.groupbyinc.flux.common.apache.lucene.rangetree.RangeTreeWriter.class Maven / Gradle / Ivy
???? 3? Bcom/groupbyinc/flux/common/apache/lucene/rangetree/RangeTreeWriter java/lang/Object RangeTreeWriter.java Lcom/groupbyinc/flux/common/apache/lucene/rangetree/RangeTreeWriter$PathSlice PathSlice Dcom/groupbyinc/flux/common/apache/lucene/rangetree/RangeTreeWriter$2 Dcom/groupbyinc/flux/common/apache/lucene/rangetree/RangeTreeWriter$1 Ocom/groupbyinc/flux/common/apache/lucene/util/OfflineSorter$ByteSequencesWriter
;com/groupbyinc/flux/common/apache/lucene/util/OfflineSorter ByteSequencesWriter Ocom/groupbyinc/flux/common/apache/lucene/util/OfflineSorter$ByteSequencesReader ByteSequencesReader Dcom/groupbyinc/flux/common/apache/lucene/util/OfflineSorter$SortInfo SortInfo
BYTES_PER_DOC I DEFAULT_MAX_VALUES_IN_LEAF_NODE DEFAULT_MAX_VALUES_SORT_IN_HEAP scratchBytes [B scratchBytesOutput DLcom/groupbyinc/flux/common/apache/lucene/store/ByteArrayDataOutput; writer QLcom/groupbyinc/flux/common/apache/lucene/util/OfflineSorter$ByteSequencesWriter;
heapWriter KLcom/groupbyinc/flux/common/apache/lucene/rangetree/GrowingHeapSliceWriter; tempInput Ljava/nio/file/Path; maxValuesInLeafNode maxValuesSortInHeap
valueCount J globalMinValue globalMaxValue $assertionsDisabled Z ()V java/io/IOException 3 (II)V 1 5
6 this DLcom/groupbyinc/flux/common/apache/lucene/rangetree/RangeTreeWriter; 1 2
: < Bcom/groupbyinc/flux/common/apache/lucene/store/ByteArrayDataOutput > ([B)V 1 @
? A ! " C??????? - , G? . , K verifyParams M 5
N ) P * R Icom/groupbyinc/flux/common/apache/lucene/rangetree/GrowingHeapSliceWriter T (I)V 1 V
U W % & Y "java/lang/IllegalArgumentException [ java/lang/StringBuilder ]
^ : %maxValuesInLeafNode must be > 0; got ` append -(Ljava/lang/String;)Ljava/lang/StringBuilder; b c
^ d (I)Ljava/lang/StringBuilder; b f
^ g toString ()Ljava/lang/String; i j
^ k (Ljava/lang/String;)V 1 m
\ n 7com/groupbyinc/flux/common/apache/lucene/util/ArrayUtil p MAX_ARRAY_LENGTH r q s =maxValuesInLeafNode must be <= ArrayUtil.MAX_ARRAY_LENGTH (= u ); got w 8maxValuesSortInHeap must be >= maxValuesInLeafNode; got y vs maxValuesInLeafNode= { =maxValuesSortInHeap must be <= ArrayUtil.MAX_ARRAY_LENGTH (= } switchToOffline getDefaultTempDir ()Ljava/nio/file/Path; ? ?
? in ? ? %java/nio/file/attribute/FileAttribute ? java/nio/file/Files ? createTempFile v(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path; ? ?
? ? ' ( ? (Ljava/nio/file/Path;)V 1 ?
? # $ ? + , ? reset ? @
? ? values [J ? ? U ? writeLong (J)V ? ?
? ? docIDs [I ? ? U ? writeVInt ? V
? ?
writeVLong ? ?
? ? write ([BII)V ? ?
? i add (JI)V 2
? (JJI)V b ?
U ? java/lang/Math ? max (JJ)J ? ?
? ? min ? ?
? ? value docID convertToFixedWidth V(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/apache/lucene/rangetree/SliceWriter; java/lang/Throwable ? =com/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilder ?
? : grow ? V
? ? get :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ? ?
? ? Acom/groupbyinc/flux/common/apache/lucene/store/ByteArrayDataInput ?
? :
? getWriter C(J)Lcom/groupbyinc/flux/common/apache/lucene/rangetree/SliceWriter; ? ?
? java/nio/file/Path ? 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef ? >com/groupbyinc/flux/common/apache/lucene/rangetree/SliceWriter ? read B(Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilder;)Z ? ?
? / 0 ? java/lang/AssertionError ?
? : bytes ? ? ? offset ? ? ? length ? ? ? ? ?
? ? readLong ()J ? ?
? ? readVInt ()I ? ?
? ? docID= ? (Ljava/lang/Object;)V 1 ?
? readVLong ?
? ? ? java/io/Closeable 5com/groupbyinc/flux/common/apache/lucene/util/IOUtils close ([Ljava/io/Closeable;)V
closeWhileHandlingException
destroy 2 ? result ord t Ljava/lang/Throwable; scratch ?Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefBuilder; 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef;
dataReader CLcom/groupbyinc/flux/common/apache/lucene/store/ByteArrayDataInput; reader QLcom/groupbyinc/flux/common/apache/lucene/util/OfflineSorter$ByteSequencesReader; sortedWriter @Lcom/groupbyinc/flux/common/apache/lucene/rangetree/SliceWriter; success sort B()Lcom/groupbyinc/flux/common/apache/lucene/rangetree/SliceWriter; ??? G(Lcom/groupbyinc/flux/common/apache/lucene/rangetree/RangeTreeWriter;)V 1&
'" 5
) Bcom/groupbyinc/flux/common/apache/lucene/rangetree/HeapSliceWriter+
, W ords. ? U/
, ?
2
,2 ?(Lcom/groupbyinc/flux/common/apache/lucene/rangetree/RangeTreeWriter;Lcom/groupbyinc/flux/common/apache/lucene/store/ByteArrayDataInput;)V 14
5 sorted7 (Ljava/util/Comparator;)V 19
: p(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/apache/lucene/util/OfflineSorter$SortInfo;"<
= ? ?
? rm ([Ljava/nio/file/Path;)VAB
C java/util/ComparatorE deleteFilesIgnoringExceptionsGB
H DLcom/groupbyinc/flux/common/apache/lucene/rangetree/HeapSliceWriter; sorter =Lcom/groupbyinc/flux/common/apache/lucene/util/OfflineSorter; cmp PLjava/util/Comparator; Ljava/util/Comparator; finish ?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)J
2 java/lang/IllegalStateExceptionS "at least one value must be indexedU
T n 8too many nodes; increase maxValuesInLeafNode (currently Z
) and reindex\ valueCount=^ (J)Ljava/lang/StringBuilder; b`
^a blockMinValues.length=c maxValuesInLeafNode=e ?"#
h E(Lcom/groupbyinc/flux/common/apache/lucene/rangetree/SliceWriter;JJ)V 1j
k build ?(IILcom/groupbyinc/flux/common/apache/lucene/rangetree/RangeTreeWriter$PathSlice;Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;JJ[J[J)Vmn
o :com/groupbyinc/flux/common/apache/lucene/store/IndexOutputq getFilePointers ?
rt
r ?
r ?
r ? out