public class GcsIOChannelFactory extends Object implements IOChannelFactory
| Modifier and Type | Method and Description |
|---|---|
void |
copy(Iterable<String> srcFilenames,
Iterable<String> destFilenames) |
WritableByteChannel |
create(String spec,
String mimeType) |
static GcsIOChannelFactory |
fromOptions(PipelineOptions options)
Create a
GcsIOChannelFactory with the given PipelineOptions. |
long |
getSizeBytes(String spec) |
boolean |
isReadSeekEfficient(String spec) |
Collection<String> |
match(String spec) |
ReadableByteChannel |
open(String spec) |
void |
remove(Collection<String> filesOrDirs) |
String |
resolve(String path,
String other) |
Path |
toPath(String path) |
public static GcsIOChannelFactory fromOptions(PipelineOptions options)
GcsIOChannelFactory with the given PipelineOptions.public Collection<String> match(String spec) throws IOException
match in interface IOChannelFactoryIOExceptionpublic ReadableByteChannel open(String spec) throws IOException
open in interface IOChannelFactoryIOExceptionpublic WritableByteChannel create(String spec, String mimeType) throws IOException
create in interface IOChannelFactoryIOExceptionpublic long getSizeBytes(String spec) throws IOException
getSizeBytes in interface IOChannelFactoryIOExceptionpublic boolean isReadSeekEfficient(String spec) throws IOException
isReadSeekEfficient in interface IOChannelFactoryIOExceptionpublic String resolve(String path, String other) throws IOException
resolve in interface IOChannelFactoryIOExceptionpublic Path toPath(String path)
toPath in interface IOChannelFactorypublic void copy(Iterable<String> srcFilenames, Iterable<String> destFilenames) throws IOException
copy in interface IOChannelFactoryIOExceptionpublic void remove(Collection<String> filesOrDirs) throws IOException
remove in interface IOChannelFactoryIOExceptionCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.