All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.gateway.MetaDataStateFormat.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3Z/com/groupbyinc/flux/gateway/MetaDataStateFormat(Ljava/lang/Object;java/lang/ObjectMetaDataStateFormat.java>com/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateIdPathAndStateIdIcom/groupbyinc/flux/gateway/MetaDataStateFormat$StateIdAndLegacyPredicate
StateIdAndLegacyPredicate1com/groupbyinc/flux/gateway/MetaDataStateFormat$2
1com/groupbyinc/flux/gateway/MetaDataStateFormat$1$java/nio/file/DirectoryStream$Filterjava/nio/file/DirectoryStreamFilterSTATE_DIR_NAMELjava/lang/String;_stateSTATE_FILE_EXTENSION.stSTATE_FILE_CODECstateSTATE_FILE_VERSIONIBUFFER_SIZEformat2Lcom/groupbyinc/flux/common/xcontent/XContentType;prefixstateFilePatternLjava/util/regex/Pattern;$assertionsDisabledZG(Lcom/groupbyinc/flux/common/xcontent/XContentType;Ljava/lang/String;)V()V,.
/%&	1'	3java/lang/StringBuilder5
6/java/util/regex/Pattern8quote&(Ljava/lang/String;)Ljava/lang/String;:;
9<append-(Ljava/lang/String;)Ljava/lang/StringBuilder;>?
6@(\d+)(B)?DtoString()Ljava/lang/String;FG
6Hcompile-(Ljava/lang/String;)Ljava/util/regex/Pattern;JK
9L()	Nthis6Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;1Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;4()Lcom/groupbyinc/flux/common/xcontent/XContentType;write+(Ljava/lang/Object;J[Ljava/nio/file/Path;)Vjava/io/IOExceptionVjava/lang/ThrowableXLocations must not be nullZ;com/groupbyinc/flux/common/google/common/base/Preconditions\
checkArgument(ZLjava/lang/Object;)V^_
]`One or more locations requiredbfindMaxStateId*(Ljava/lang/String;[Ljava/nio/file/Path;)Jde
f*+	hjava/lang/AssertionErrorj&maxStateId must be positive but was: [l(J)Ljava/lang/StringBuilder;>n
6o]q(Ljava/lang/Object;)V,s
ktjava/nio/file/Pathvresolve((Ljava/lang/String;)Ljava/nio/file/Path;xywz%java/nio/file/attribute/FileAttribute|java/nio/file/Files~createDirectoriesR(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;??
?.tmp? MetaDataStateFormat.write(path="?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;>?
6?")?Fcom/groupbyinc/flux/common/apache/lucene/store/OutputStreamIndexOutput?java/nio/file/OpenOption?newOutputStreamG(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;??
?,(Ljava/lang/String;Ljava/io/OutputStream;I)V,?
??9com/groupbyinc/flux/common/apache/lucene/codecs/CodecUtil?writeHeaderQ(Lcom/groupbyinc/flux/common/apache/lucene/store/DataOutput;Ljava/lang/String;I)V??
??0com/groupbyinc/flux/common/xcontent/XContentType?index()I??
??writeInt(I)V??
??	writeLong(J)V??
??p(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V,?
?newXContentBuilder(Lcom/groupbyinc/flux/common/xcontent/XContentType;Ljava/io/OutputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?3com/groupbyinc/flux/common/xcontent/XContentBuilder?startObject7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
??
toXContentJ(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Ljava/lang/Object;)V??
?	endObject??
??close?.
??[Ljava/nio/file/Path;?java/lang/String?
addSuppressed(Ljava/lang/Throwable;)V??
Y?writeFooter?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V??
??
??5com/groupbyinc/flux/common/apache/lucene/util/IOUtils?fsync(Ljava/nio/file/Path;Z)V??
??java/nio/file/CopyOption? java/nio/file/StandardCopyOption?ATOMIC_MOVE"Ljava/nio/file/StandardCopyOption;??	??moveY(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;??
?copy??
?deleteIfExists(Ljava/nio/file/Path;)Z??
?cleanupOldFiles<(Ljava/lang/String;Ljava/lang/String;[Ljava/nio/file/Path;)V??
?builder5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;outHLcom/groupbyinc/flux/common/apache/lucene/store/OutputStreamIndexOutput;tmpPathLjava/nio/file/Path;	finalPathiresourceDescTT;Ljava/lang/Object;versionJ	locations
maxStateIdfileName
stateLocationtmpStatePathfinalStatePath3com/groupbyinc/flux/common/xcontent/XContentFactorycontentBuilder?
typestreamLjava/io/OutputStream;fromXContentH(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/lang/Object;read((Ljava/nio/file/Path;)Ljava/lang/Object;Dcom/groupbyinc/flux/common/apache/lucene/index/CorruptIndexExceptionIcom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooOldExceptionIcom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooNewException	getParent()Ljava/nio/file/Path;wnewDirectoryP(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;
getFileNamewwH8com/groupbyinc/flux/common/apache/lucene/store/IOContextDEFAULT:Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext; !	"8com/groupbyinc/flux/common/apache/lucene/store/Directory$	openInput?(Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/store/IOContext;)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;&'
%(checksumEntireFile>(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;)J*+
?,checkHeaderQ(Lcom/groupbyinc/flux/common/apache/lucene/store/DataInput;Ljava/lang/String;II)I./
?0values5()[Lcom/groupbyinc/flux/common/xcontent/XContentType;23
?49com/groupbyinc/flux/common/apache/lucene/store/IndexInput6readInt8?
79readLong()J;<
7=getFilePointer?<
7@lengthB<
7CfooterLengthE?
?Fstate_xcontentHsliceQ(Ljava/lang/String;JJ)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;JK
7LxContentb(Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContent;NO
P=com/groupbyinc/flux/common/lucene/store/InputStreamIndexInputR?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;J)V,T
SU,com/groupbyinc/flux/common/xcontent/XContentWcreateParserK(Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;YZX[	
]2com/groupbyinc/flux/common/xcontent/XContentParser_`?
7?
%?1com/groupbyinc/flux/gateway/CorruptStateExceptiond,?
efparser4Lcom/groupbyinc/flux/common/xcontent/XContentParser;;Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;xContentTypefilePointercontentSize
indexInputexLjava/io/IOException;dir:Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;file@com/groupbyinc/flux/common/apache/lucene/store/SimpleFSDirectoryt(Ljava/nio/file/Path;)V,v
uwX(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;Ljava/lang/String;Ljava/lang/String;)V,y
znewDirectoryStream[(Ljava/nio/file/Path;Ljava/nio/file/DirectoryStream$Filter;)Ljava/nio/file/DirectoryStream;|}
~iterator()Ljava/util/Iterator;???java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;?????	stateFile5Ljava/nio/file/DirectoryStream;Ljava/nio/file/DirectoryStream;dataLocationcurrentStateFilefilter;&Ljava/nio/file/DirectoryStream$Filter;????????java/nio/file/LinkOption?exists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z??
?*?G(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/DirectoryStream;|?
?matcher3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;??
9?java/util/regex/Matcher?matches??
??group(I)Ljava/lang/String;??
??java/lang/Long?	parseLong(Ljava/lang/String;)J??
??java/lang/Math?max(JJ)J??
??idLjava/util/regex/Matcher;maxIdloadLatestStateV(Lcom/groupbyinc/flux/common/logging/ESLogger;[Ljava/nio/file/Path;)Ljava/lang/Object;!java/nio/file/NoSuchFileException?java/io/FileNotFoundException?java/util/ArrayList?
?/+com/groupbyinc/flux/common/logging/ESLogger?java/util/List?5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;|?
?equals(Ljava/lang/Object;)Z??
??L(Ljava/nio/file/Path;JZLcom/groupbyinc/flux/gateway/MetaDataStateFormat$1;)V,?
?found state file: {}?trace((Ljava/lang/String;[Ljava/lang/Object;)V????add????(JZ)V,?
?=com/groupbyinc/flux/common/google/common/collect/Collections2?g(Ljava/util/Collection;Lcom/groupbyinc/flux/common/google/common/base/Predicate;)Ljava/util/Collection;??
??java/util/Collection???s?	???	?legacy?+	?readAllBytes(Ljava/nio/file/Path;)[B??
?!{}: no data for [{}], ignoring...?toAbsolutePath?w?debug????[B?+com/groupbyinc/flux/common/bytes/BytesArray([B)V,
2com/groupbyinc/flux/common/xcontent/XContentHelperg(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;Y



state id [{}] read from [{}]valueOf(J)Ljava/lang/Long;
?failed to read 
H*(Ljava/lang/String;Ljava/lang/Throwable;)V,
W${}: failed to read [{}], ignoring...=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V??$com/groupbyinc/flux/ExceptionsHelpermaybeThrowRuntimeAndSuppress(Ljava/util/List;)V 
!size#??$java/lang/IllegalStateException&2Could not find a state file to recover from among ((Ljava/lang/String;)V,*
'+stateIdpav@Lcom/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateId;pathsstateDirdataeLjava/lang/Throwable;pathAndStateIdlogger-Lcom/groupbyinc/flux/common/logging/ESLogger;
dataLocationsfilesRLjava/util/List;Ljava/util/List;maxStateIdIsLegacy
exceptions'Ljava/util/List;deleteMetaState([Ljava/nio/file/Path;)VrmA@
?BstateDirectoriesjava/lang/ClassFdesiredAssertionStatusH?
GI
ConstantValueCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTable
Exceptions	Signature(TT;J[Ljava/nio/file/Path;)V;(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;TT;)V9(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)TT;(Ljava/nio/file/Path;)TT;G(Lcom/groupbyinc/flux/common/logging/ESLogger;[Ljava/nio/file/Path;)TT;
SourceFileInnerClasses!	KKK !K"#!K$%&'()*+
,-L?6*?0*+?2*,?4*?6Y?7,?=?AC?A?AE?A?I?M?O?M 6PR6%&6'N6PQOKL	MN5P%SLA*?2?MPRNPQOV?TUL????[?a???c?a**?4?g
a7?i?+	??$?kY?6Y?7m?A?pr?A?I?u??6Y?7*?4?A?p?A?I:2?{:?}??W?6Y?7?A??A?I?{:	?{:
?6Y?7??A	????A?I:??Y	??????::
??*?2???? ??**?2?Y*????::??W*+????W?U??§H:?ʧ<?§4::?:?!??§:?ʧ??????U
??ϧH:
?ʧ<?ϧ4::
?:?!
??ϧ:
?ʧ???	??	
??Y??S??W??6???2?{:?}??W?6Y?7?A??A?I?{:
?{:

?׸?W
??Y??S??W??
??W?:
??W????}	??W?:	??W?**?4??:?BY0VY0_kpsYVa_???Y???Y??????Y???Lpyy{y??????M?m??????AC??
L8????!????PR????????-~??x3??&??????	????
N?PQ??O?-efg-h[ixj?k?l?m?o?p?q?rst{#}*0?Vt_??????p???????????$?A?L?X?j?p?v?y?????????????P>	@@?@????www??Y?YYGYHY???www??Y?YYY???www??YVYGYHY???www??YYY?
??www?? ?t
??www?wwY?
?HY
QWRS??LV+,??M PR&NPQO?QW??QWRT	QWRU
Ln?*+??MN,+???#?)::?-X?1W?5?:2:?>X?A7?D?G?ee7	I	?M::?Q?SY	?V?\:
:*
?^:
?%?
?a?:?ʧ

?a?!??b?:?ʧ?b?!??b?:?ʧ?b,?-?,?c?:-?ʧ,?c?::?:
?%?
?a?:?ʧ

?a?:

:
?:?!??b?:?ʧ?b?::?:?!??b?:?ʧ?b?:?eY?g?:N?:,?-?,?c?:-?ʧ,?c????Y???Y???Y
Y??Y??%18;Y'%l?QYQQYl?ZfknY\Z$??Y??Y$?????Y??
??

??
????
????
??Y??Y
?????Y??Mf
??hi
iJj?Ck&L6l?['m?	!?nj?
op?qr?PR?s?N?PQOb?
?$?*?4???E?L?[?l????????????%?Q?Z???????????P?!??w%Y7Y?7Y`YYQYQYNY
?
w%Y7Y?7Y`YYHY?w%Y7Y?7Y`YYY?w%Y7Y?7YYHY?w%Y7Y?7YYY?w%Y7YYHY?w%Y7YYY?w%YWKYGY?w%YYY
QWRVLO	?uY+?x?M	PR	q?N	PQO?QW??LRƻY*+,?{:-:?66??2:?{?:	:
	??:??????w:??W???	?]
?	???N:
?ʧB	???8::
?:
	?%
?	???:
?ʧ
	??
????U?jqtY8`?Y8`????Y???MRW??5??	%????PR?'????????N 5??	?PQ???O.??%?8?W?]?`?????????P???????)????wY??SYIYHY?????wYYY??????QW?deL?
?B,:?66??2:?{:		??????	?6Y?7+?A??A?I??:
:
??:???A???w:
*?O
????:???????7!??B???
?]?
???N:?ʧB
???8::?:
?%?
???:?ʧ

??????
!????YR??YR?????Y???Mf
??????q/??
O??
(?x?	???
PR
'
????NO??

PQOB???(?4?R?q?????????????????P?
?????K???wwY??D?SYIYHY????wwYYY?????QW???Lz???Y??N?76,?5,:?66		?#	2:

?{:??::
??:???????w:*?O????:???^????7??7???Ӛ?6~6?Y??:+??YS??-??W??r?]
????N:
?ʧB???8::
?:?%
????:
?ʧ
????:?	??ܻ?Y??::-?Y????:		???
	???:

??:
??7
??m??:??$+??Y*?4SY??S??????Y??	:*?^:?!+??Y*?4SY??S???**?:+
?Y?SY?S???:?WY?6Y?7?A
??A?I???W+?Y
???SY*?4S?????"-?%??'Y?6Y?7)?A-???I?,??	???YB?YB?"%Y8;>?8;>?~?(Y?'(YM??P-??2?+?./vc??ax????0?81?-??
?`2??.hi????????*L34~?5/
?PR?67?8??9;
????<+OW=;RT?N4??0??PQ?9:OW=>RT?O?2??
???-?8Bav~????	?
??
?;>@?FOR~??? ?!?"?#?%?&?'?(?*?+,%.(/*0S1v3y5~6?8?:P??	?????+????wwY??Xw?@?3?SYIYHY?????wwYYY?????wwBW???!???Y?????w??8?????w`??????w&?
?????Y?P)QWRW??@L?&*??wL=*??+*2?{S????+?C?M ?!&8? D?Ojklk!n%oP???QWE.L4?J???i?O<P@RXY*	
	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy