|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.optimizer.SamplePruner
public class SamplePruner
The transformation step that does sample pruning.
| Nested Class Summary | |
|---|---|
static class |
SamplePruner.AddPathReturnStatus
Class used for return value of addPath() |
static class |
SamplePruner.DefaultPPR
DefaultPPR default processor which does nothing. |
static class |
SamplePruner.FilterPPR
FilterPPR filter processor. |
static class |
SamplePruner.LimitPruneRetStatus
|
static class |
SamplePruner.SamplePrunerCtx
SamplePrunerCtx. |
| Constructor Summary | |
|---|---|
SamplePruner()
|
|
| Method Summary | |
|---|---|
static SamplePruner.AddPathReturnStatus |
addPath(org.apache.hadoop.fs.FileSystem fs,
String pathPattern,
long sizeLeft,
int fileLimit,
Collection<org.apache.hadoop.fs.Path> retPathList)
Try to recursively add files in sub-directories into retPathList until reaching the sizeLeft. |
static NodeProcessor |
getDefaultProc()
|
static NodeProcessor |
getFilterProc()
|
static SamplePruner.LimitPruneRetStatus |
limitPrune(Partition part,
long sizeLimit,
int fileLimit,
Collection<org.apache.hadoop.fs.Path> retPathList)
Try to generate a list of subset of files in the partition to reach a size limit with number of files less than fileLimit |
static org.apache.hadoop.fs.Path[] |
prune(Partition part,
FilterDesc.sampleDesc sampleDescr)
Prunes to get all the files in the partition that satisfy the TABLESAMPLE clause. |
ParseContext |
transform(ParseContext pctx)
All transformation steps implement this interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SamplePruner()
| Method Detail |
|---|
public ParseContext transform(ParseContext pctx)
throws SemanticException
Transform
transform in interface Transformpctx - input parse context
SemanticExceptionpublic static NodeProcessor getFilterProc()
public static NodeProcessor getDefaultProc()
public static org.apache.hadoop.fs.Path[] prune(Partition part,
FilterDesc.sampleDesc sampleDescr)
throws SemanticException
part - The partition to prune
SemanticException
public static SamplePruner.AddPathReturnStatus addPath(org.apache.hadoop.fs.FileSystem fs,
String pathPattern,
long sizeLeft,
int fileLimit,
Collection<org.apache.hadoop.fs.Path> retPathList)
throws IOException
fs - pathPattern - sizeLeft - fileLimit - retPathList -
IOException
public static SamplePruner.LimitPruneRetStatus limitPrune(Partition part,
long sizeLimit,
int fileLimit,
Collection<org.apache.hadoop.fs.Path> retPathList)
throws SemanticException
part - sizeLimit - fileLimit - retPathList - list of Paths returned
SemanticException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||