@PublicEvolving public class HiveSourceSplit extends FileSourceSplit
FileSourceSplit
that contains extra information needed to read a hive
table.Constructor and Description |
---|
HiveSourceSplit(org.apache.hadoop.mapred.FileSplit fileSplit,
HiveTablePartition hiveTablePartition,
CheckpointedPosition readerPosition) |
HiveSourceSplit(String id,
Path filePath,
long offset,
long length,
long fileModificationTime,
long fileSize,
String[] hostnames,
CheckpointedPosition readerPosition,
HiveTablePartition hiveTablePartition) |
HiveSourceSplit(String id,
Path filePath,
long offset,
long length,
String[] hostnames,
CheckpointedPosition readerPosition,
HiveTablePartition hiveTablePartition)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
HiveTablePartition |
getHiveTablePartition() |
org.apache.hadoop.mapred.FileSplit |
toMapRedSplit() |
String |
toString() |
FileSourceSplit |
updateWithCheckpointedPosition(CheckpointedPosition position)
Creates a copy of this split where the checkpointed position is replaced by the given new
position.
|
fileModificationTime, fileSize, getReaderPosition, hostnames, length, offset, path, splitId
public HiveSourceSplit(org.apache.hadoop.mapred.FileSplit fileSplit, HiveTablePartition hiveTablePartition, @Nullable CheckpointedPosition readerPosition) throws IOException
IOException
public HiveSourceSplit(String id, Path filePath, long offset, long length, long fileModificationTime, long fileSize, String[] hostnames, @Nullable CheckpointedPosition readerPosition, HiveTablePartition hiveTablePartition)
@Deprecated public HiveSourceSplit(String id, Path filePath, long offset, long length, String[] hostnames, @Nullable CheckpointedPosition readerPosition, HiveTablePartition hiveTablePartition)
HiveSourceSplit(String, Path, long, long, long, long,
String[], CheckpointedPosition, HiveTablePartition)
public HiveTablePartition getHiveTablePartition()
public org.apache.hadoop.mapred.FileSplit toMapRedSplit()
public FileSourceSplit updateWithCheckpointedPosition(@Nullable CheckpointedPosition position)
FileSourceSplit
IMPORTANT: Subclasses that add additional information to the split must override this method to return that subclass type. This contract is enforced by checks in the file source implementation. We did not try to enforce this contract via generics in this split class, because it leads to very ugly and verbose use of generics.
updateWithCheckpointedPosition
in class FileSourceSplit
public String toString()
toString
in class FileSourceSplit
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.