StreamFormatAdapter
instead.@Deprecated @Internal public final class FileRecordFormatAdapter<T> extends Object implements BulkFormat<T,FileSourceSplit>
FileRecordFormat
into a BulkFormat
.Modifier and Type | Class and Description |
---|---|
static class |
FileRecordFormatAdapter.Reader<T>
Deprecated.
This interface is Deprecated, use
StreamFormatAdapter.Reader instead. |
BulkFormat.RecordIterator<T>
Constructor and Description |
---|
FileRecordFormatAdapter(FileRecordFormat<T> fileFormat)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
BulkFormat.Reader<T> |
createReader(Configuration config,
FileSourceSplit split)
Deprecated.
Creates a new reader that reads from the
split's path starting
at the split's offset and reads length bytes after the offset. |
TypeInformation<T> |
getProducedType()
Deprecated.
Gets the type produced by this format.
|
boolean |
isSplittable()
Deprecated.
Checks whether this format is splittable.
|
BulkFormat.Reader<T> |
restoreReader(Configuration config,
FileSourceSplit split)
Deprecated.
Creates a new reader that reads from
split.path() starting at offset and
reads until length bytes after the offset. |
public FileRecordFormatAdapter(FileRecordFormat<T> fileFormat)
public BulkFormat.Reader<T> createReader(Configuration config, FileSourceSplit split) throws IOException
BulkFormat
split's path
starting
at the split's offset
and reads length
bytes after the offset.createReader
in interface BulkFormat<T,FileSourceSplit>
IOException
public BulkFormat.Reader<T> restoreReader(Configuration config, FileSourceSplit split) throws IOException
BulkFormat
split.path()
starting at offset
and
reads until length
bytes after the offset. A number of recordsToSkip
records
should be read and discarded after the offset. This is typically part of restoring a reader
to a checkpointed position.restoreReader
in interface BulkFormat<T,FileSourceSplit>
IOException
public boolean isSplittable()
BulkFormat
See top-level JavaDocs
(section "Splitting") for details.
isSplittable
in interface BulkFormat<T,FileSourceSplit>
public TypeInformation<T> getProducedType()
BulkFormat
getProducedType
in interface ResultTypeQueryable<T>
getProducedType
in interface BulkFormat<T,FileSourceSplit>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.