public class OrcSplit extends org.apache.hadoop.mapred.FileSplit implements ColumnarSplit, LlapAwareSplit
| Modifier | Constructor and Description |
|---|---|
protected |
OrcSplit() |
|
OrcSplit(org.apache.hadoop.fs.Path path,
Object fileId,
long offset,
long length,
String[] hosts,
org.apache.orc.impl.OrcTail orcTail,
boolean isOriginal,
boolean hasBase,
List<AcidInputFormat.DeltaMetaData> deltas,
long projectedDataSize,
long fileLen,
org.apache.hadoop.fs.Path rootDir) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUseLlapIo(org.apache.hadoop.conf.Configuration conf) |
long |
getColumnarProjectionSize()
Return the estimation size of the column projections that will be read from this split.
|
List<AcidInputFormat.DeltaMetaData> |
getDeltas() |
Object |
getFileKey() |
long |
getFileLength() |
org.apache.orc.impl.OrcTail |
getOrcTail() |
long |
getProjectedColumnsUncompressedSize() |
org.apache.hadoop.fs.Path |
getRootDir() |
boolean |
hasBase() |
boolean |
hasFooter() |
boolean |
isAcid()
If this method returns true, then for sure it is ACID.
|
boolean |
isOriginal() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
protected OrcSplit()
public OrcSplit(org.apache.hadoop.fs.Path path,
Object fileId,
long offset,
long length,
String[] hosts,
org.apache.orc.impl.OrcTail orcTail,
boolean isOriginal,
boolean hasBase,
List<AcidInputFormat.DeltaMetaData> deltas,
long projectedDataSize,
long fileLen,
org.apache.hadoop.fs.Path rootDir)
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.mapred.FileSplitIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.mapred.FileSplitIOExceptionpublic org.apache.orc.impl.OrcTail getOrcTail()
public boolean hasFooter()
public boolean isOriginal()
true if file schema doesn't have Acid metadata columns
Such file may be in a delta_x_y/ or base_x due to being added via
"load data" command. It could be at partition|table root due to table having
been converted from non-acid to acid table. It could even be something like
"warehouse/t/HIVE_UNION_SUBDIR_15/000000_0" if it was written by an
"insert into t select ... from A union all select ... from B"public boolean hasBase()
public org.apache.hadoop.fs.Path getRootDir()
public List<AcidInputFormat.DeltaMetaData> getDeltas()
public long getFileLength()
public boolean isAcid()
public long getProjectedColumnsUncompressedSize()
public Object getFileKey()
public long getColumnarProjectionSize()
ColumnarSplitgetColumnarProjectionSize in interface ColumnarSplitpublic boolean canUseLlapIo(org.apache.hadoop.conf.Configuration conf)
canUseLlapIo in interface LlapAwareSplitpublic String toString()
toString in class org.apache.hadoop.mapred.FileSplitCopyright © 2019 The Apache Software Foundation. All Rights Reserved.