public class DataSetCost extends Object implements org.apache.calcite.plan.RelOptCost
org.apache.calcite.plan.volcano.VolcanoCost
and has
an adapted cost comparison method isLe(other: RelOptCost)
that takes io and cpu into account.Constructor and Description |
---|
DataSetCost(double rowCount,
double cpu,
double io) |
Modifier and Type | Method and Description |
---|---|
double |
cpu() |
double |
divideBy(org.apache.calcite.plan.RelOptCost cost) |
boolean |
equals(org.apache.calcite.plan.RelOptCost other) |
static org.apache.calcite.plan.RelOptCostFactory |
FACTORY() |
double |
getCpu() |
double |
getIo() |
double |
getRows() |
int |
hashCode() |
static DataSetCost |
Huge() |
static DataSetCost |
Infinity() |
double |
io() |
boolean |
isEqWithEpsilon(org.apache.calcite.plan.RelOptCost other) |
boolean |
isInfinite() |
boolean |
isLe(org.apache.calcite.plan.RelOptCost other) |
boolean |
isLt(org.apache.calcite.plan.RelOptCost other) |
org.apache.calcite.plan.RelOptCost |
minus(org.apache.calcite.plan.RelOptCost other) |
org.apache.calcite.plan.RelOptCost |
multiplyBy(double factor) |
org.apache.calcite.plan.RelOptCost |
plus(org.apache.calcite.plan.RelOptCost other) |
double |
rowCount() |
static DataSetCost |
Tiny() |
String |
toString() |
static DataSetCost |
Zero() |
public static DataSetCost Infinity()
public static DataSetCost Huge()
public static DataSetCost Zero()
public static DataSetCost Tiny()
public static org.apache.calcite.plan.RelOptCostFactory FACTORY()
public double rowCount()
public double cpu()
public double io()
public double getCpu()
getCpu
in interface org.apache.calcite.plan.RelOptCost
public boolean isInfinite()
isInfinite
in interface org.apache.calcite.plan.RelOptCost
public double getIo()
getIo
in interface org.apache.calcite.plan.RelOptCost
public boolean isLe(org.apache.calcite.plan.RelOptCost other)
isLe
in interface org.apache.calcite.plan.RelOptCost
public boolean isLt(org.apache.calcite.plan.RelOptCost other)
isLt
in interface org.apache.calcite.plan.RelOptCost
public double getRows()
getRows
in interface org.apache.calcite.plan.RelOptCost
public boolean equals(org.apache.calcite.plan.RelOptCost other)
equals
in interface org.apache.calcite.plan.RelOptCost
public boolean isEqWithEpsilon(org.apache.calcite.plan.RelOptCost other)
isEqWithEpsilon
in interface org.apache.calcite.plan.RelOptCost
public org.apache.calcite.plan.RelOptCost minus(org.apache.calcite.plan.RelOptCost other)
minus
in interface org.apache.calcite.plan.RelOptCost
public org.apache.calcite.plan.RelOptCost multiplyBy(double factor)
multiplyBy
in interface org.apache.calcite.plan.RelOptCost
public double divideBy(org.apache.calcite.plan.RelOptCost cost)
divideBy
in interface org.apache.calcite.plan.RelOptCost
public org.apache.calcite.plan.RelOptCost plus(org.apache.calcite.plan.RelOptCost other)
plus
in interface org.apache.calcite.plan.RelOptCost
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.