Package org.apache.drill.exec.store.hive
Class HiveMetadataProvider.LogicalInputSplit
java.lang.Object
org.apache.drill.exec.store.hive.HiveMetadataProvider.LogicalInputSplit
- Enclosing class:
- HiveMetadataProvider
Contains group of input splits along with the partition. For non-partitioned tables, the partition field is null.
Input splits can be logically grouped together, for example, in case of when table has header / footer.
In this case all splits from the same file should be processed together.
-
Constructor Summary
ConstructorDescriptionLogicalInputSplit
(Collection<? extends org.apache.hadoop.mapred.InputSplit> inputSplits, org.apache.hadoop.hive.metastore.api.Partition partition) LogicalInputSplit
(org.apache.hadoop.mapred.InputSplit inputSplit, org.apache.hadoop.hive.metastore.api.Partition partition) -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.apache.hadoop.mapred.InputSplit>
long
org.apache.hadoop.hive.metastore.api.Partition
getType()
Serializes each input split to string using Base64 encoding.
-
Constructor Details
-
LogicalInputSplit
public LogicalInputSplit(org.apache.hadoop.mapred.InputSplit inputSplit, org.apache.hadoop.hive.metastore.api.Partition partition) -
LogicalInputSplit
public LogicalInputSplit(Collection<? extends org.apache.hadoop.mapred.InputSplit> inputSplits, org.apache.hadoop.hive.metastore.api.Partition partition)
-
-
Method Details
-
getInputSplits
-
getPartition
public org.apache.hadoop.hive.metastore.api.Partition getPartition() -
getLength
- Returns:
- returns total length of all stored input splits
- Throws:
IOException
-
getLocations
- Returns:
- collection of unique locations where input splits are stored
- Throws:
IOException
-
serialize
Serializes each input split to string using Base64 encoding.- Returns:
- list of serialized input splits
- Throws:
IOException
-
getType
- Returns:
- returns input split class name if at least one input split is present, null otherwise.
-