本文整理汇总了Java中com.yahoo.sketches.SketchesArgumentException类的典型用法代码示例。如果您正苦于以下问题:Java SketchesArgumentException类的具体用法?Java SketchesArgumentException怎么用?Java SketchesArgumentException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SketchesArgumentException类属于com.yahoo.sketches包,在下文中一共展示了SketchesArgumentException类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testBadCreation
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@Test(expectedExceptions = SketchesArgumentException.class, expectedExceptionsMessageRegExp = ".*power of 2.*")
public void testBadCreation() {
new FrequentItemsSketch(ErrorType.NO_FALSE_NEGATIVES, 12, 1);
}
示例2: testBadCreation
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@Test(expectedExceptions = SketchesArgumentException.class)
public void testBadCreation() {
new TupleSketch(ResizeFactor.X1, -1.0f, -2, 0);
}
示例3: testBadCreation
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@Test(expectedExceptions = SketchesArgumentException.class)
public void testBadCreation() {
new QuantileSketch(-2, null, null);
}
示例4: testBadCreation
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@Test(expectedExceptions = SketchesArgumentException.class)
public void testBadCreation() {
new ThetaSketch(null, null, 1.0f, -2);
}
示例5: evenlySpacedZero
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@Test(expectedExceptions = SketchesArgumentException.class)
public void evenlySpacedZero() {
ItemsSketch<String> sketch = ItemsSketch.getInstance(comparator);
new GetQuantilesFromStringsSketchUDF()
.evaluate(new BytesWritable(sketch.toByteArray(serDe)), 0);
}
示例6: evenlySpacedZero
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@Test(expectedExceptions = SketchesArgumentException.class)
public void evenlySpacedZero() {
UpdateDoublesSketch sketch = DoublesSketch.builder().build();
new GetQuantilesFromDoublesSketchUDF().evaluate(new BytesWritable(sketch.toByteArray()), 0);
}
示例7: checkConstructorExceptions1
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@SuppressWarnings("unused")
@Test(expectedExceptions = SketchesArgumentException.class)
public void checkConstructorExceptions1() {
Union test = new Union("1023");
}
示例8: testConstructorExceptions4
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@SuppressWarnings("unused")
@Test(expectedExceptions = SketchesArgumentException.class)
public void testConstructorExceptions4() {
Union test = new Union("1024", "2.0");
}
示例9: testConstructorExceptions1
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@SuppressWarnings("unused")
@Test(expectedExceptions = SketchesArgumentException.class)
public void testConstructorExceptions1() {
DataToSketch test = new DataToSketch("1023");
}
示例10: testConstructorExceptions4
import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@SuppressWarnings("unused")
@Test(expectedExceptions = SketchesArgumentException.class)
public void testConstructorExceptions4() {
DataToSketch test = new DataToSketch("1024", "2.0");
}