Package org.apache.beam.sdk.io
Class LocalResources
- java.lang.Object
-
- org.apache.beam.sdk.io.LocalResources
-
@Experimental(FILESYSTEM) public final class LocalResources extends java.lang.Object
Helper functions for producing aResourceId
that references a local file or directory.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceId
fromFile(java.io.File file, boolean isDirectory)
static ResourceId
fromPath(java.nio.file.Path path, boolean isDirectory)
static ResourceId
fromString(java.lang.String filename, boolean isDirectory)
static ValueProvider<ResourceId>
fromString(ValueProvider<java.lang.String> resourceProvider, boolean isDirectory)
-
-
-
Method Detail
-
fromFile
public static ResourceId fromFile(java.io.File file, boolean isDirectory)
-
fromPath
public static ResourceId fromPath(java.nio.file.Path path, boolean isDirectory)
-
fromString
public static ResourceId fromString(java.lang.String filename, boolean isDirectory)
-
fromString
public static ValueProvider<ResourceId> fromString(ValueProvider<java.lang.String> resourceProvider, boolean isDirectory)
-
-