當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。