当前位置: 首页>>代码示例>>Java>>正文


Java SketchesArgumentException类代码示例

本文整理汇总了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);
}
 
开发者ID:yahoo,项目名称:bullet-core,代码行数:5,代码来源:FrequentItemsSketchTest.java

示例2: testBadCreation

import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@Test(expectedExceptions = SketchesArgumentException.class)
public void testBadCreation() {
    new TupleSketch(ResizeFactor.X1, -1.0f, -2, 0);

}
 
开发者ID:yahoo,项目名称:bullet-core,代码行数:6,代码来源:TupleSketchTest.java

示例3: testBadCreation

import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@Test(expectedExceptions = SketchesArgumentException.class)
public void testBadCreation() {
    new QuantileSketch(-2, null, null);
}
 
开发者ID:yahoo,项目名称:bullet-core,代码行数:5,代码来源:QuantileSketchTest.java

示例4: testBadCreation

import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@Test(expectedExceptions = SketchesArgumentException.class)
public void testBadCreation() {
    new ThetaSketch(null, null, 1.0f, -2);
}
 
开发者ID:yahoo,项目名称:bullet-core,代码行数:5,代码来源:ThetaSketchTest.java

示例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);
}
 
开发者ID:DataSketches,项目名称:sketches-hive,代码行数:7,代码来源:GetQuantilesFromStringsSketchUDFTest.java

示例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);
}
 
开发者ID:DataSketches,项目名称:sketches-hive,代码行数:6,代码来源:GetQuantilesFromDoublesSketchUDFTest.java

示例7: checkConstructorExceptions1

import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@SuppressWarnings("unused")
@Test(expectedExceptions = SketchesArgumentException.class)
public void checkConstructorExceptions1() {
  Union test = new Union("1023");
}
 
开发者ID:DataSketches,项目名称:sketches-pig,代码行数:6,代码来源:UnionTest.java

示例8: testConstructorExceptions4

import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@SuppressWarnings("unused")
@Test(expectedExceptions = SketchesArgumentException.class)
public void testConstructorExceptions4() {
  Union test = new Union("1024", "2.0");
}
 
开发者ID:DataSketches,项目名称:sketches-pig,代码行数:6,代码来源:UnionTest.java

示例9: testConstructorExceptions1

import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@SuppressWarnings("unused")
@Test(expectedExceptions = SketchesArgumentException.class)
public void testConstructorExceptions1() {
  DataToSketch test = new DataToSketch("1023");
}
 
开发者ID:DataSketches,项目名称:sketches-pig,代码行数:6,代码来源:DataToSketchTest.java

示例10: testConstructorExceptions4

import com.yahoo.sketches.SketchesArgumentException; //导入依赖的package包/类
@SuppressWarnings("unused")
@Test(expectedExceptions = SketchesArgumentException.class)
public void testConstructorExceptions4() {
  DataToSketch test = new DataToSketch("1024", "2.0");
}
 
开发者ID:DataSketches,项目名称:sketches-pig,代码行数:6,代码来源:DataToSketchTest.java


注:本文中的com.yahoo.sketches.SketchesArgumentException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。