public class SplitSample extends Object implements Serializable
Constructor and Description |
---|
SplitSample() |
SplitSample(double percent,
int seedNum) |
SplitSample(int rowCount) |
SplitSample(long totalLength,
int seedNum) |
Modifier and Type | Method and Description |
---|---|
long |
estimateSourceSize(long targetSize) |
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) |
public SplitSample()
public SplitSample(double percent, int seedNum)
public SplitSample(long totalLength, int seedNum)
public SplitSample(int rowCount)
public Double getPercent()
public void setPercent(Double percent)
public Long getTotalLength()
public void setTotalLength(Long totalLength)
public Integer getRowCount()
public void setRowCount(Integer rowCount)
public int getSeedNum()
public void setSeedNum(int seedNum)
public long getTargetSize(long totalSize)
public long estimateSourceSize(long targetSize)
Copyright © 2019 The Apache Software Foundation. All rights reserved.