Package io.deephaven.iceberg.relative
Class RelativeFileIO
java.lang.Object
io.deephaven.iceberg.relative.RelativeFileIO
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,org.apache.hadoop.conf.Configurable
,org.apache.iceberg.hadoop.HadoopConfigurable
,org.apache.iceberg.io.DelegateFileIO
,org.apache.iceberg.io.FileIO
,org.apache.iceberg.io.SupportsBulkOperations
,org.apache.iceberg.io.SupportsPrefixOperations
@VisibleForTesting
public final class RelativeFileIO
extends Object
implements org.apache.iceberg.hadoop.HadoopConfigurable, org.apache.iceberg.io.DelegateFileIO
While this class is in the public source set, it is meant to support testing use cases only and should not be used in
production.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRelativeFileIO
(org.apache.hadoop.conf.Configuration hadoopConf) RelativeFileIO
(org.apache.iceberg.util.SerializableSupplier<org.apache.hadoop.conf.Configuration> hadoopConf) -
Method Summary
Modifier and TypeMethodDescriptionabsoluteLocation
(String location) void
close()
void
deleteFile
(String path) void
deleteFiles
(Iterable<String> iterable) void
org.apache.hadoop.conf.Configuration
getConf()
void
initialize
(Map<String, String> properties) Iterable<org.apache.iceberg.io.FileInfo>
listPrefix
(String s) org.apache.iceberg.io.InputFile
newInputFile
(String path) org.apache.iceberg.io.InputFile
newInputFile
(String path, long length) org.apache.iceberg.io.OutputFile
newOutputFile
(String path) void
serializeConfWith
(Function<org.apache.hadoop.conf.Configuration, org.apache.iceberg.util.SerializableSupplier<org.apache.hadoop.conf.Configuration>> confSerializer) void
setConf
(org.apache.hadoop.conf.Configuration conf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.iceberg.io.FileIO
deleteFile, deleteFile, newInputFile, newInputFile, newInputFile
-
Field Details
-
BASE_PATH
-
IO_IMPL
-
IO_DEFAULT_IMPL
-
-
Constructor Details
-
RelativeFileIO
public RelativeFileIO() -
RelativeFileIO
public RelativeFileIO(org.apache.hadoop.conf.Configuration hadoopConf) -
RelativeFileIO
public RelativeFileIO(org.apache.iceberg.util.SerializableSupplier<org.apache.hadoop.conf.Configuration> hadoopConf)
-
-
Method Details
-
getConf
public org.apache.hadoop.conf.Configuration getConf()- Specified by:
getConf
in interfaceorg.apache.hadoop.conf.Configurable
-
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf) - Specified by:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
-
serializeConfWith
public void serializeConfWith(Function<org.apache.hadoop.conf.Configuration, org.apache.iceberg.util.SerializableSupplier<org.apache.hadoop.conf.Configuration>> confSerializer) - Specified by:
serializeConfWith
in interfaceorg.apache.iceberg.hadoop.HadoopConfigurable
-
absoluteLocation
-
initialize
- Specified by:
initialize
in interfaceorg.apache.iceberg.io.FileIO
-
properties
- Specified by:
properties
in interfaceorg.apache.iceberg.io.FileIO
-
newInputFile
- Specified by:
newInputFile
in interfaceorg.apache.iceberg.io.FileIO
-
newInputFile
- Specified by:
newInputFile
in interfaceorg.apache.iceberg.io.FileIO
-
newOutputFile
- Specified by:
newOutputFile
in interfaceorg.apache.iceberg.io.FileIO
-
deleteFiles
public void deleteFiles(Iterable<String> iterable) throws org.apache.iceberg.io.BulkDeletionFailureException - Specified by:
deleteFiles
in interfaceorg.apache.iceberg.io.SupportsBulkOperations
- Throws:
org.apache.iceberg.io.BulkDeletionFailureException
-
listPrefix
- Specified by:
listPrefix
in interfaceorg.apache.iceberg.io.SupportsPrefixOperations
-
deletePrefix
- Specified by:
deletePrefix
in interfaceorg.apache.iceberg.io.SupportsPrefixOperations
-
deleteFile
- Specified by:
deleteFile
in interfaceorg.apache.iceberg.io.FileIO
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.iceberg.io.FileIO
-