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(...) 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)
           
SplitSample(int rowCount)
           
SplitSample(long totalLength, int seedNum)
           
 
Method Summary
 Double getPercent()
           
 Integer getRowCount()
           
 int getSeedNum()
           
 long getTargetSize(long totalSize)
           
 Long getTotalLength()
           
 void setPercent(Double percent)
           
 void setRowCount(Integer rowCount)
           
 void setSeedNum(int seedNum)
           
 void setTotalLength(Long totalLength)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitSample

public SplitSample()

SplitSample

public SplitSample(double percent,
                   int seedNum)

SplitSample

public SplitSample(long totalLength,
                   int seedNum)

SplitSample

public SplitSample(int rowCount)
Method Detail

getPercent

public Double getPercent()

setPercent

public void setPercent(Double percent)

getTotalLength

public Long getTotalLength()

setTotalLength

public void setTotalLength(Long totalLength)

getRowCount

public Integer getRowCount()

setRowCount

public void setRowCount(Integer rowCount)

getSeedNum

public int getSeedNum()

setSeedNum

public void setSeedNum(int seedNum)

getTargetSize

public long getTargetSize(long totalSize)


Copyright © 2014 The Apache Software Foundation. All rights reserved.