org.apache.hadoop.hive.ql.parse
Class SplitSample
java.lang.Object
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
SplitSample
public SplitSample()
SplitSample
public SplitSample(double percent,
int seedNum)
SplitSample
public SplitSample(long totalLength,
int seedNum)
SplitSample
public SplitSample(int rowCount)
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.