public abstract class SparkContentFile<F> extends java.lang.Object implements ContentFile<F>
Modifier and Type | Method and Description |
---|---|
protected abstract F |
asFile() |
java.util.Map<java.lang.Integer,java.lang.Long> |
columnSizes()
Returns if collected, map from column ID to the size of the column in bytes, null otherwise.
|
FileContent |
content()
Returns type of content stored in the file; one of DATA, POSITION_DELETES, or EQUALITY_DELETES.
|
F |
copy()
Copies this file.
|
F |
copyWithoutStats()
Copies this file without file stats.
|
java.util.List<java.lang.Integer> |
equalityFieldIds()
Returns the set of field IDs used for equality comparison, in equality delete files.
|
long |
fileSizeInBytes()
Returns the file size in bytes.
|
FileFormat |
format()
Returns format of the file.
|
java.nio.ByteBuffer |
keyMetadata()
Returns metadata about how this file is encrypted, or null if the file is stored in plain text.
|
java.util.Map<java.lang.Integer,java.nio.ByteBuffer> |
lowerBounds()
Returns if collected, map from column ID to value lower bounds, null otherwise.
|
java.util.Map<java.lang.Integer,java.lang.Long> |
nanValueCounts()
Returns if collected, map from column ID to its NaN value count, null otherwise.
|
java.util.Map<java.lang.Integer,java.lang.Long> |
nullValueCounts()
Returns if collected, map from column ID to its null value count, null otherwise.
|
StructLike |
partition()
Returns partition for this file as a
StructLike . |
java.lang.CharSequence |
path()
Returns fully qualified path to the file, suitable for constructing a Hadoop Path.
|
java.lang.Long |
pos()
Returns the ordinal position of the file in a manifest, or null if it was not read from a
manifest.
|
long |
recordCount()
Returns the number of top-level records in the file.
|
java.lang.Integer |
sortOrderId()
Returns the sort order id of this file, which describes how the file is ordered.
|
int |
specId()
Returns id of the partition spec used for partition metadata.
|
java.util.List<java.lang.Long> |
splitOffsets()
Returns list of recommended split locations, if applicable, null otherwise.
|
java.util.Map<java.lang.Integer,java.nio.ByteBuffer> |
upperBounds()
Returns if collected, map from column ID to value upper bounds, null otherwise.
|
java.util.Map<java.lang.Integer,java.lang.Long> |
valueCounts()
Returns if collected, map from column ID to the count of its values (including null and NaN
values), null otherwise.
|
F |
wrap(org.apache.spark.sql.Row row) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy, copyWithStats, dataSequenceNumber, fileSequenceNumber
public F wrap(org.apache.spark.sql.Row row)
protected abstract F asFile()
public java.lang.Long pos()
ContentFile
pos
in interface ContentFile<F>
public int specId()
ContentFile
specId
in interface ContentFile<F>
public FileContent content()
ContentFile
content
in interface ContentFile<F>
public java.lang.CharSequence path()
ContentFile
path
in interface ContentFile<F>
public FileFormat format()
ContentFile
format
in interface ContentFile<F>
public StructLike partition()
ContentFile
StructLike
.partition
in interface ContentFile<F>
public long recordCount()
ContentFile
recordCount
in interface ContentFile<F>
public long fileSizeInBytes()
ContentFile
fileSizeInBytes
in interface ContentFile<F>
public java.util.Map<java.lang.Integer,java.lang.Long> columnSizes()
ContentFile
columnSizes
in interface ContentFile<F>
public java.util.Map<java.lang.Integer,java.lang.Long> valueCounts()
ContentFile
valueCounts
in interface ContentFile<F>
public java.util.Map<java.lang.Integer,java.lang.Long> nullValueCounts()
ContentFile
nullValueCounts
in interface ContentFile<F>
public java.util.Map<java.lang.Integer,java.lang.Long> nanValueCounts()
ContentFile
nanValueCounts
in interface ContentFile<F>
public java.util.Map<java.lang.Integer,java.nio.ByteBuffer> lowerBounds()
ContentFile
lowerBounds
in interface ContentFile<F>
public java.util.Map<java.lang.Integer,java.nio.ByteBuffer> upperBounds()
ContentFile
upperBounds
in interface ContentFile<F>
public java.nio.ByteBuffer keyMetadata()
ContentFile
keyMetadata
in interface ContentFile<F>
public F copy()
ContentFile
copy
in interface ContentFile<F>
public F copyWithoutStats()
ContentFile
copyWithoutStats
in interface ContentFile<F>
public java.util.List<java.lang.Long> splitOffsets()
ContentFile
When available, this information is used for planning scan tasks whose boundaries are determined by these offsets. The returned list must be sorted in ascending order.
splitOffsets
in interface ContentFile<F>
public java.lang.Integer sortOrderId()
ContentFile
sortOrderId
in interface ContentFile<F>
public java.util.List<java.lang.Integer> equalityFieldIds()
ContentFile
An equality delete file may contain additional data fields that are not used by equality comparison. The subset of columns in a delete file to be used in equality comparison are tracked by ID. Extra columns can be used to reconstruct changes and metrics from extra columns are used during job planning.
equalityFieldIds
in interface ContentFile<F>