public class HiveDynamoDBSegmentsSplit extends org.apache.hadoop.mapred.FileSplit implements DynamoDBSplit
path is non-null, and
takes a form of, e.g., hdfs://10.239.164.224:9000/mnt/hive_0110/warehouse/dynamodbtable that maps
to a DynamoDB table.
DynamoDBSegmentsSplit. We cannot use
DynamoDBSegmentsSplit with Hive because HiveInputFormat in
Aws157Hive (as of version 0.11.0) requires the injected InputSplit object be a FileSplit.
Otherwise, it falls back to using new Path(""), which always throws an IllegalArgumentException:
Can not create a Path from an empty string.| Constructor and Description |
|---|
HiveDynamoDBSegmentsSplit() |
HiveDynamoDBSegmentsSplit(org.apache.hadoop.fs.Path path,
long approxItemCount,
int splitId,
List<Integer> segments,
int totalSegments,
DynamoDBQueryFilter filterPushdown) |
| Modifier and Type | Method and Description |
|---|---|
long |
getApproxItemCount() |
DynamoDBQueryFilter |
getFilterPushdown() |
long |
getLength() |
String[] |
getLocations() |
List<Integer> |
getSegments() |
int |
getSplitId() |
int |
getTotalSegments() |
void |
readFields(DataInput in) |
void |
setDynamoDBFilterPushdown(DynamoDBQueryFilter filterPushdown) |
void |
write(DataOutput out) |
public HiveDynamoDBSegmentsSplit()
public HiveDynamoDBSegmentsSplit(org.apache.hadoop.fs.Path path,
long approxItemCount,
int splitId,
List<Integer> segments,
int totalSegments,
DynamoDBQueryFilter filterPushdown)
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.mapred.FileSplitIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.mapred.FileSplitIOExceptionpublic long getLength()
getLength in interface org.apache.hadoop.mapred.InputSplitgetLength in class org.apache.hadoop.mapred.FileSplitpublic String[] getLocations() throws IOException
getLocations in interface org.apache.hadoop.mapred.InputSplitgetLocations in class org.apache.hadoop.mapred.FileSplitIOExceptionpublic long getApproxItemCount()
getApproxItemCount in interface DynamoDBSplitpublic int getSplitId()
getSplitId in interface DynamoDBSplitpublic List<Integer> getSegments()
getSegments in interface DynamoDBSplitpublic int getTotalSegments()
getTotalSegments in interface DynamoDBSplitpublic DynamoDBQueryFilter getFilterPushdown()
getFilterPushdown in interface DynamoDBSplitpublic void setDynamoDBFilterPushdown(DynamoDBQueryFilter filterPushdown)
setDynamoDBFilterPushdown in interface DynamoDBSplitCopyright © 2021. All rights reserved.