public class WeightedStrings extends Object implements LongFunction<String>
| Constructor and Description |
|---|
WeightedStrings(String valueColumn,
String weightColumn,
String... filenames)
Create a sampler of strings from the given CSV file.
|
public WeightedStrings(String valueColumn, String weightColumn, String... filenames)
valueColumn - The name of the value column to be sampledweightColumn - The name of the weight column, which must be parsable as a doublefilenames - One or more file names which will be read in to the sampler bufferpublic String apply(long value)
apply in interface LongFunction<String>Copyright © 2018. All rights reserved.