
com.groupbyinc.flux.common.blobstore.fs.FsBlobContainer.class Maven / Gradle / Ivy
???? 3 ? 7com/groupbyinc/flux/common/blobstore/fs/FsBlobContainer Bcom/groupbyinc/flux/common/blobstore/support/AbstractBlobContainer FsBlobContainer.java blobStore 5Lcom/groupbyinc/flux/common/blobstore/fs/FsBlobStore; path Ljava/nio/file/Path; $assertionsDisabled Z {(Lcom/groupbyinc/flux/common/blobstore/fs/FsBlobStore;Lcom/groupbyinc/flux/common/blobstore/BlobPath;Ljava/nio/file/Path;)V 2(Lcom/groupbyinc/flux/common/blobstore/BlobPath;)V
this 9Lcom/groupbyinc/flux/common/blobstore/fs/FsBlobContainer; blobPath /Lcom/groupbyinc/flux/common/blobstore/BlobPath; listBlobs A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; java/io/IOException listBlobsByPrefix S(Ljava/lang/String;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;
java/lang/Throwable ! -com/groupbyinc/flux/common/collect/MapBuilder #
newMapBuilder 1()Lcom/groupbyinc/flux/common/collect/MapBuilder; % &
$ ' ) java/lang/String + java/lang/StringBuilder - ()V /
. 0 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 2 3
. 4 * 6 toString ()Ljava/lang/String; 8 9
. : java/nio/file/Files < newDirectoryStream G(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/DirectoryStream; > ?
= @ java/nio/file/DirectoryStream B iterator ()Ljava/util/Iterator; D E C F java/util/Iterator H hasNext ()Z J K I L next ()Ljava/lang/Object; N O I P java/nio/file/Path R +java/nio/file/attribute/BasicFileAttributes T java/nio/file/LinkOption V readAttributes o(Ljava/nio/file/Path;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/BasicFileAttributes; X Y
= Z
isRegularFile \ K U ] getFileName ()Ljava/nio/file/Path; _ ` S a S : >com/groupbyinc/flux/common/blobstore/support/PlainBlobMetaData d size ()J f g U h (Ljava/lang/String;J)V j
e k put U(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/collect/MapBuilder; m n
$ o close q / C r
addSuppressed (Ljava/lang/Throwable;)V t u
" v immutableMap x
$ y attrs -Ljava/nio/file/attribute/BasicFileAttributes; file stream 5Ljava/nio/file/DirectoryStream; Ljava/nio/file/DirectoryStream; blobNamePrefix Ljava/lang/String; builder vLcom/groupbyinc/flux/common/collect/MapBuilder; /Lcom/groupbyinc/flux/common/collect/MapBuilder;
deleteBlob (Ljava/lang/String;)V resolve ((Ljava/lang/String;)Ljava/nio/file/Path; ? ? S ? deleteIfExists (Ljava/nio/file/Path;)Z ? ?
= ? blobName
blobExists (Ljava/lang/String;)Z exists 2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z ? ?
= ? readBlob )(Ljava/lang/String;)Ljava/io/InputStream; java/io/BufferedInputStream ? java/nio/file/OpenOption ? newInputStream F(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream; ? ?
= ? 3com/groupbyinc/flux/common/blobstore/fs/FsBlobStore ? bufferSizeInBytes ()I ? ?
? ? (Ljava/io/InputStream;I)V ?
? ? name writeBlob +(Ljava/lang/String;Ljava/io/InputStream;J)V newOutputStream G(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream; ? ?
= ? %com/groupbyinc/flux/common/io/Streams ? copy 0(Ljava/io/InputStream;Ljava/io/OutputStream;[B)J ? ?
? ? java/io/OutputStream ?
? r java/io/InputStream ? 5com/groupbyinc/flux/common/apache/lucene/util/IOUtils ? fsync (Ljava/nio/file/Path;Z)V ? ?
? ? outputStream Ljava/io/OutputStream; inputStream Ljava/io/InputStream; blobSize J F(Ljava/lang/String;Lcom/groupbyinc/flux/common/bytes/BytesReference;)V /com/groupbyinc/flux/common/bytes/BytesReference ? writeTo (Ljava/io/OutputStream;)V ? ? ? ? data 1Lcom/groupbyinc/flux/common/bytes/BytesReference; move '(Ljava/lang/String;Ljava/lang/String;)V
? java/lang/AssertionError ?
? 0 java/nio/file/CopyOption ? java/nio/file/StandardCopyOption ? ATOMIC_MOVE "Ljava/nio/file/StandardCopyOption; ? ? ? ? Y(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path; ? ?
= ? source target
sourcePath
targetPath #(Ljava/lang/String;)Ljava/util/Map; ()Ljava/util/Map;
? java/lang/Class ? desiredAssertionStatus ? K
? ? Code LocalVariableTable LineNumberTable
Exceptions Signature ?()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; LocalVariableTypeTable
StackMapTable ?(Ljava/lang/String;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;
SourceFile !
? d *,? *+? *-? ? ? * ? 1 2
3 4 ? 0 *? ? ? ? 8 ? ? ? ?
? (M+? *? +L*? ? .Y? 1+? 57? 5? ;? AN:-? G :? M ? T? Q ? S:U? W? [:? ^ ? .,? b ? c ? eY? b ? c ? i ? l? pW???-? X? -? s ? J:? w? >-? s ? 5::?:-? #? -? s ? : ? w? -? s ?,? z? ? ? ? " - ? ? " - ? ? ? ? ? " ? ? ? ? > X 5 { | K B } * ? ~ ? ? ? ? ? ? ? ? ? * ? ~ ? ? ? ? 2 > @ A - B K C X D b E ? G ? H ? A ? H ? I ? \
?
$@ ,? & C " I? W? Q "H "H "? , $ C " " "? , $ ? ? ? ? ? ? W *? +? ? M,? ?W? ? ? ? ? N O P ? ? ? ? F *? +? ? ? W? ?? ? ? ? ? T ? ? ? T ? ?Y*? +? ? ? ?? ?*? ? ?? ?? ? ? ? ? Y ? ? ? ? ? ?*? +? ? :? ?? ?::,*? ? ??? ?X? U? ? ?? H:? w? <? ?? 4::?: ? !? ? ?? :
? w? ? ? ?? ?*? ? ?? 4 9 <