com.groupbyinc.flux.common.apache.lucene.codecs.CodecUtil.class Maven / Gradle / Ivy
???? 4? 9com/groupbyinc/flux/common/apache/lucene/codecs/CodecUtil java/lang/Object CodecUtil.java CODEC_MAGIC I??l FOOTER_MAGIC?(?? $assertionsDisabled Z ()V
this ;Lcom/groupbyinc/flux/common/apache/lucene/codecs/CodecUtil; writeHeader Q(Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;Ljava/lang/String;I)V java/io/IOException 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef (Ljava/lang/CharSequence;)V
length java/lang/String ()I !
" "java/lang/IllegalArgumentException $ java/lang/StringBuilder &
' Dcodec must be simple ASCII, less than 128 characters in length [got ) append -(Ljava/lang/String;)Ljava/lang/StringBuilder; + ,
' - ] / toString ()Ljava/lang/String; 1 2
' 3 (Ljava/lang/String;)V
5
% 6 9com/groupbyinc/flux/common/apache/lucene/store/DataOutput 8 writeInt (I)V : ;
9 < writeString > 5
9 ? out ;Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput; codec Ljava/lang/String; version bytes 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; writeIndexHeader e(Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;Ljava/lang/String;I[BLjava/lang/String;)V Invalid id: J :com/groupbyinc/flux/common/apache/lucene/util/StringHelper L
idToString ([B)Ljava/lang/String; N O
M P
R
writeBytes ([BII)V T U
9 V Esuffix must be simple ASCII, less than 256 characters in length [got X writeByte (B)V Z [
9 \ [B F ^ _ offset a b id suffix suffixBytes headerLength (Ljava/lang/String;)I indexHeaderLength '(Ljava/lang/String;Ljava/lang/String;)I g h
k checkHeader Q(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;Ljava/lang/String;II)I 8com/groupbyinc/flux/common/apache/lucene/store/DataInput o readInt q !
p r Dcom/groupbyinc/flux/common/apache/lucene/index/CorruptIndexException t %codec header mismatch: actual header= v (I)Ljava/lang/StringBuilder; + x
' y vs expected header= { O(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;)V
}
u ~ checkHeaderNoMagic ? n
? in :Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;
minVersion
maxVersion actualHeader
readString ? 2
p ? equals (Ljava/lang/Object;)Z ? ?
? codec mismatch: actual codec= ? vs expected codec= ? Icom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooOldException ? @(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;III)V
?
? ? Icom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooNewException ?
? ? actualCodec
actualVersion checkIndexHeader e(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;Ljava/lang/String;II[BLjava/lang/String;)I m n
? checkIndexHeaderID @(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;[B)[B ? ?
? checkIndexHeaderSuffix `(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;Ljava/lang/String;)Ljava/lang/String; ? ?
?
expectedID expectedSuffix verifyAndCopyIndexHeader {(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;[B)V 9com/groupbyinc/flux/common/apache/lucene/store/IndexInput ? ()J ?
? ? footerLength ? !
? ? Qcompound sub-files must have a valid codec header and footer: file is too small ( ? (J)Ljava/lang/StringBuilder; + ?
' ? bytes) ?
? r ccompound sub-files must have a valid codec header and footer: codec header mismatch: actual header= ?
? ? readByte ()B ? ?
? ? readBytes ? U
? ? ;Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput; suffixLength readIndexHeader ?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;)[B seek (J)V ? ?
? ? getFilePointer ? ?
? ?
readFooter 1misplaced codec footer (file truncated?): length= ? but footerLength== ? validateFooter >(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;)V ? ?
?
p ? java/util/Arrays ? ([B[B)Z ? ?
? ? file mismatch, expected id= ? , got= ? ^
p ? !java/nio/charset/StandardCharsets ? UTF_8 Ljava/nio/charset/Charset; ? ? ? ? !([BIILjava/nio/charset/Charset;)V
?
? file mismatch, expected suffix= ? writeFooter ?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V :com/groupbyinc/flux/common/apache/lucene/store/IndexOutput ?
? < writeCRC ? ?
?