org.apache.hadoop.hive.ql.parse
Class SplitSample

java.lang.Object
  extended by org.apache.hadoop.hive.ql.parse.SplitSample
All Implemented Interfaces:
Serializable

public class SplitSample
extends Object
implements Serializable

This class stores all the information specified in the TABLESAMPLE(PERCENT ...) clause. e.g. for the clause "FROM t TABLESAMPLE(1 PERCENT) it will store the percentage 1, and the seed number is to determine which 1%. Currently it is from the conf hive.sample.seednumber

See Also:
Serialized Form

Constructor Summary
SplitSample()
           
SplitSample(double percent, int seedNum)
           
 
Method Summary
 double getPercent()
           
 int getSeedNum()
           
 void setPercent(double percent)
           
 void setSeedNum(int seedNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitSample

public SplitSample()

SplitSample

public SplitSample(double percent,
                   int seedNum)
Method Detail

getPercent

public double getPercent()

setPercent

public void setPercent(double percent)

getSeedNum

public int getSeedNum()

setSeedNum

public void setSeedNum(int seedNum)


Copyright © 2013 The Apache Software Foundation