本文整理匯總了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");
}