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: 198
Show newest version
????4?/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/DirectoryStreamFilter%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupSTATE_DIR_NAMELjava/lang/String;_stateSTATE_FILE_EXTENSION.st STATE_FILE_CODECstate#!MIN_COMPATIBLE_STATE_FILE_VERSIONISTATE_FILE_VERSION"STATE_FILE_VERSION_ES_2X_AND_BELOWBUFFER_SIZEformat2Lcom/groupbyinc/flux/common/xcontent/XContentType;prefixstateFilePatternLjava/util/regex/Pattern;$assertionsDisabledZG(Lcom/groupbyinc/flux/common/xcontent/XContentType;Ljava/lang/String;)V()V46
7-.	9/	;java/lang/StringBuilder=
>7java/util/regex/Pattern@quote&(Ljava/lang/String;)Ljava/lang/String;BC
ADappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;FG
>H(\d+)(J)?LtoString()Ljava/lang/String;NO
>Pcompile-(Ljava/lang/String;)Ljava/util/regex/Pattern;RS
AT01	Vthis6Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;1Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;4()Lcom/groupbyinc/flux/common/xcontent/XContentType;write*(Ljava/lang/Object;[Ljava/nio/file/Path;)Vjava/io/IOException^java/lang/Throwable`"java/lang/IllegalArgumentExceptionbLocations must not be nulld(Ljava/lang/String;)V4f
cgOne or more locations requiredifindMaxStateId*(Ljava/lang/String;[Ljava/nio/file/Path;)Jkl
m23	ojava/lang/AssertionErrorq&maxStateId must be positive but was: [s(J)Ljava/lang/StringBuilder;Fu
>v]x(Ljava/lang/Object;)V4z
r{java/nio/file/Path}resolve((Ljava/lang/String;)Ljava/nio/file/Path;?~?%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;F?
>?")?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/lang/String;Ljava/io/OutputStream;I)V4?
??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??
??p(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;Lcom/groupbyinc/flux/common/apache/lucene/store/IndexOutput;)V4?
?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?6
??[Ljava/nio/file/Path;?java/lang/String?
addSuppressed(Ljava/lang/Throwable;)V??
a?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;	locations
maxStateIdJfileName
stateLocationtmpStatePathfinalStatePath3com/groupbyinc/flux/common/xcontent/XContentFactorycontentBuilder?
typestreamLjava/io/OutputStream;fromXContentH(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/lang/Object;readc(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/nio/file/Path;)Ljava/lang/Object;Dcom/groupbyinc/flux/common/apache/lucene/index/CorruptIndexExceptionIcom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooOldExceptionIcom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooNewException	getParent()Ljava/nio/file/Path;~newDirectoryP(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;
getFileName~~P8com/groupbyinc/flux/common/apache/lucene/store/IOContext DEFAULT: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01
?2values5()[Lcom/groupbyinc/flux/common/xcontent/XContentType;45
?69com/groupbyinc/flux/common/apache/lucene/store/IndexInput8readInt:?
9;readLong()J=>
9?9com/groupbyinc/flux/common/xcontent/NamedXContentRegistryAgetFilePointerC>
9DlengthF>
9GfooterLengthI?
?Jstate_xcontentLsliceQ(Ljava/lang/String;JJ)Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;NO
9PxContentb(Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContent;RS
T=com/groupbyinc/flux/common/lucene/store/InputStreamIndexInputV?(Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;J)V4X
WY,com/groupbyinc/flux/common/xcontent/XContent[createParser?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;]^\_

a2com/groupbyinc/flux/common/xcontent/XContentParsercd?
9?
'?1com/groupbyinc/flux/gateway/CorruptStateExceptionh4?
ijparser4Lcom/groupbyinc/flux/common/xcontent/XContentParser;;Lcom/groupbyinc/flux/common/apache/lucene/store/IndexInput;fileVersionxContentTypefilePointercontentSize
indexInputexLjava/io/IOException;dir:Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;namedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;file@com/groupbyinc/flux/common/apache/lucene/store/SimpleFSDirectory{(Ljava/nio/file/Path;)V4}
|~X(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;Ljava/lang/String;Ljava/lang/String;)V4?
?newDirectoryStream[(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;??
A?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;maxIdloadLatestState?(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;[Ljava/nio/file/Path;)Ljava/lang/Object;!java/nio/file/NoSuchFileException?java/io/FileNotFoundException?java/lang/Exception?java/util/ArrayList?
?7org/apache/logging/log4j/Logger?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4?
?found state file: {}?trace'(Ljava/lang/String;Ljava/lang/Object;)V????add????()Ljava/util/stream/Stream;???(JZ)V4?
?java/util/stream/Stream?9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;????"java/lang/invoke/LambdaMetafactory?metafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;??
?????()Ljava/util/ArrayList;?get()Ljava/util/function/Supplier;?java/util/stream/CollectorstoCollection;(Ljava/util/function/Supplier;)Ljava/util/stream/Collector;
collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;	
?java/util/Collection
?z?	??	legacy3	readAllBytes(Ljava/nio/file/Path;)[B
?!{}: no data for [{}], ignoring...toAbsolutePath~debug9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V !?"[B$+com/groupbyinc/flux/common/bytes/BytesArray&([B)V4(
')2com/groupbyinc/flux/common/xcontent/XContentHelper+?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;]-
,.
0state id [{}] read from [{}]2valueOf(J)Ljava/lang/Long;45
?6?!?8failed to read :
P*(Ljava/lang/String;Ljava/lang/Throwable;)V4=
_>lambda$loadLatestState$0T(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateId;)Ljava/lang/Object;@A
BC?(Lcom/groupbyinc/flux/gateway/MetaDataStateFormat;Lcom/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateId;)Lorg/apache/logging/log4j/util/Supplier;?EF@(Lorg/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V H?I$com/groupbyinc/flux/ExceptionsHelperKmaybeThrowRuntimeAndSuppress(Ljava/util/List;)VMN
LOsizeQ??Rjava/lang/IllegalStateExceptionT2Could not find a state file to recover from among V
UgstateIdpav@Lcom/groupbyinc/flux/gateway/MetaDataStateFormat$PathAndStateId;pathsstateDirdataeLjava/lang/Exception;pathAndStateIdlogger!Lorg/apache/logging/log4j/Logger;
dataLocationsfilesRLjava/util/List;Ljava/util/List;maxStateIdIsLegacy
exceptions'Ljava/util/List;pathAndStateIdsXLjava/util/Collection;Ljava/util/Collection;deleteMetaState([Ljava/nio/file/Path;)Vrmpo
?qstateDirectories5org/apache/logging/log4j/message/ParameterizedMessaget${}: failed to read [{}], ignoring...v4!
uxjava/lang/Class{desiredAssertionStatus}?
|~
ConstantValueCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTable
Exceptions	Signature(TT;[Ljava/nio/file/Path;)V;(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;TT;)V9(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)TT;T(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/nio/file/Path;)TT;v(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;[Ljava/nio/file/Path;)TT;BootstrapMethods
SourceFileInnerClasses!??!"?$%&?'(&?)*&?'+&?,-./012345??6*?8*+?:*,?<*?>Y??,?E?IK?I!?IM?I?Q?U?W?? 6XZ6-.6/?6XY?ST	UV5X-[?A*?:??XZ?XY?^?\]???,?
?cYe?h?,??
?cYj?h?**?<,?n
aB?p?)!	??#?rY?>Y??t?I!?wy?I?Q?|??>Y??*?Y???I??I?Q??:??:?>Y????I????I?Q:	??Y	??????:
:
$??
*?:????**?:?Y*
????::
??W*+????W?U
??ŧH:
?ͧ<?ŧ4::
?:?!
??ŧ:
?ͧ???
??
?U?
?ҧH:?ͧ<
?ҧ4::?:
?!?
?ҧ:?ͧ
???????Y??S??W??6

,???,
2??:????W?>Y???I??I?Q??:??:?ڸ?W??Y??S??W????W?:??W??
????W?:??W?**?<,??.36a$Ja$S_dgaJUS???a???a??????a???>bkkmk?|??????m??????
3C??>8?????&
???	?XZ?#????)s??q+?}??????????XY?#???0lmopr)sUtqu}v?w?x?z?{?|?{?}?~????$?JS?{????{??????????????3?>?J?\?b?h?k?v?|??????????4?7??
??~~~??a?aaGaHa???~~~??a?aaa???~~~??aVaGaHa???~~~??aaa?	??~~~?? ?r??~~~?~~a?
?Ha
?_?????V+,??? XZ.	?XY???_???_??
?_??
???*,??N:-,???%?+::?/X$?36?7?<2:?	?@X?E7	?H?K?e	e7M	?Q:
:?U+?WY
?Z?`::*?b:?%??e?:?ͧ
?e
?!?
?f?:?ͧ
?f?!??f?:?ͧ?f-??-?g?:?ͧ-?g?::?:?%??e?:?ͧ
?e?::?:
?!?
?f?:?ͧ
?f?::?:?!??f?:?ͧ?f?:?iY?k?::?:-??-?g?:?ͧ-?g????a???a???aa??&a??/;BEa&1/s?[a&[[as?dpuxa&fd%??a&??a%?????a&?????&??&??&???a&??a????a&???z??lmpNn
6Vo&AKp.S9q?	b*r?"?sn?
tu?vw?XZ?xy?z???XY?j??%?+?6?A?F?L?S?b?s??????????#?&?/?[?d?????????????"?L	B~'a9a??]B~'a9a?9adaaQaQaOa?B~'a9a?9adaaHa?B~'a9a?9adaaa?
B~'a9a?9aaHa?B~'a9a?9aaa?B~'a9aaHa?B~'a9aaa?B~'a_KaHa?B~'aaa?_???O	?|Y+???	XZ	v??	XY???_???RƻY*+,??:-:?66??2:????:	:
	??:??????~:??W???	?]
?	???N:
?ͧB	???8::
?:
	?%
?	???:
?ͧ
	??
????U?jqta8`?a8`????a????RW??5??	%????XZ?/????????? 5??	?XY????.??%?8?W?]?`?????????????????)????~a??SaIaHa?????~aaa???????_?kl??
?B,:?66??2:??:		??????	?>Y??+?I??I?Q??:
:
??:???A???~:
*?W
????:???????7!??B???
?]?
???N:?ͧB
???8::?:
?%?
???:?ͧ

??????
!????aR??aR?????a????f
??????q/??
O??
(??	???
XZ
/
?????O??

XY?B???(?4?R?q???????????????????
?????K???~~a??D?SaIaHa????~~aaa??????_???????Y??:?76-?/-:?6	6

	?
2:??:??:
:
??:???????~:*?W????:???X????7??7!???ܚ?6~6?Y??:+?????W??x
?]?
???N:?ͧB
???8::?:
?%?
???:?ͧ

????:
?
????Y??::	???Y???????:

?:???=???:?:
?7???
?:??+*?<
??#???,?'Y?*?/::*?b:	?]??e?N:?ͧB?e?8::?:?%??e?:?ͧ
?e?	?+*?<
??#?!*,
?1:	+3?7
??9	?:
?_Y?>Y??;?I?Y??W?I???Q?X?	????aC?aC?
 a
969?969????a??a??(/2a???????????JY??,3?Z[w]??br??@?\?
9]?.
???jlm??^$????
?????9_`
?+a[?XZ?bc?xy?d?	?eg????h3J?igM?#?	v|km
?>@?\?
?XY	?efJ?ijM?#?	v|kl
??9		

.9Cbw???????? 
 6"9 ;
A%J&M,O-_.i/v1?3?4?5?6?7?8?9?;?<?=;=H>M?aAdBmC?E?F?G?H?L?N?O?Q?S?!? 
?B????+?B???~~a??X~?@?-?SaIaHa??B???~~aaa??B???~~B_???=?B?????O?B????~%?-?B????~%daaIaHa??B????~%daaa??B????~%???B??????=+?_???no??&*??~L=*??+*2??S????+?r?? ?&&d? s??????!?%??????_@A?f?uYw+??*?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy