Package io.deephaven.iceberg.util
Class FileIOAdapterBase
java.lang.Object
io.deephaven.iceberg.util.FileIOAdapterBase
- All Implemented Interfaces:
FileIOAdapter
- Direct Known Subclasses:
GCSFileIOAdapter
,LocalFileIOAdapter
,S3FallbackFileIOAdapter
,S3FileIOAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SeekableChannelsProvider
createProvider
(@NotNull String uriScheme, @NotNull org.apache.iceberg.io.FileIO io, @Nullable Object object) Create a newSeekableChannelsProvider
compatible for reading from and writing to the given URI scheme using the givenFileIO
implementation.protected abstract SeekableChannelsProvider
createProviderImpl
(@NotNull String uriScheme, @NotNull org.apache.iceberg.io.FileIO io, @Nullable Object specialInstructions) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.iceberg.util.FileIOAdapter
isCompatible, isCompatible
-
Constructor Details
-
FileIOAdapterBase
public FileIOAdapterBase()
-
-
Method Details
-
createProvider
public final SeekableChannelsProvider createProvider(@NotNull @NotNull String uriScheme, @NotNull @NotNull org.apache.iceberg.io.FileIO io, @Nullable @Nullable Object object) Description copied from interface:FileIOAdapter
Create a newSeekableChannelsProvider
compatible for reading from and writing to the given URI scheme using the givenFileIO
implementation. For example, for an "s3" URI, we will create aSeekableChannelsProvider
which can read files from S3.- Specified by:
createProvider
in interfaceFileIOAdapter
- Parameters:
uriScheme
- The URI schemeio
- TheFileIO
implementation to use.object
- An optional object to pass special instructions to the provider.
-
createProviderImpl
protected abstract SeekableChannelsProvider createProviderImpl(@NotNull @NotNull String uriScheme, @NotNull @NotNull org.apache.iceberg.io.FileIO io, @Nullable @Nullable Object specialInstructions)
-