public class DrillCostBase extends Object implements DrillRelOptCost
Modifier and Type | Class and Description |
---|---|
static class |
DrillCostBase.DrillCostFactory |
Modifier and Type | Field and Description |
---|---|
static int |
AVG_FIELD_WIDTH |
static int |
BASE_CPU_COST
NOTE: the multiplication factors below are not calibrated yet...these
are chosen based on approximations for now.
|
static int |
BYTE_DISK_READ_COST |
static int |
BYTE_NETWORK_COST |
static int |
COMPARE_CPU_COST |
static int |
FUNC_CPU_COST |
static int |
HASH_CPU_COST |
static double |
MEMORY_TO_CPU_RATIO |
static int |
PROJECT_CPU_COST |
static int |
RANGE_PARTITION_CPU_COST |
static int |
SVR_CPU_COST |
Constructor and Description |
---|
DrillCostBase(double rowCount,
double cpu,
double io,
double network) |
DrillCostBase(double rowCount,
double cpu,
double io,
double network,
double memory) |
Modifier and Type | Method and Description |
---|---|
double |
divideBy(org.apache.calcite.plan.RelOptCost cost) |
boolean |
equals(Object that) |
boolean |
equals(org.apache.calcite.plan.RelOptCost other) |
double |
getCpu() |
double |
getIo() |
double |
getMemory() |
double |
getNetwork() |
double |
getRows() |
int |
hashCode() |
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) |
String |
toString() |
public static final int BASE_CPU_COST
public static final int BYTE_DISK_READ_COST
public static final int BYTE_NETWORK_COST
public static final int SVR_CPU_COST
public static final int FUNC_CPU_COST
public static final int PROJECT_CPU_COST
public static final int HASH_CPU_COST
public static final double MEMORY_TO_CPU_RATIO
public static final int RANGE_PARTITION_CPU_COST
public static final int COMPARE_CPU_COST
public static final int AVG_FIELD_WIDTH
public DrillCostBase(double rowCount, double cpu, double io, double network)
public DrillCostBase(double rowCount, double cpu, double io, double network, double memory)
public double getRows()
getRows
in interface org.apache.calcite.plan.RelOptCost
public double getCpu()
getCpu
in interface org.apache.calcite.plan.RelOptCost
public double getIo()
getIo
in interface org.apache.calcite.plan.RelOptCost
public double getNetwork()
getNetwork
in interface DrillRelOptCost
public double getMemory()
getMemory
in interface DrillRelOptCost
public boolean isInfinite()
isInfinite
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 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 org.apache.calcite.plan.RelOptCost plus(org.apache.calcite.plan.RelOptCost other)
plus
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
Copyright © 1970 The Apache Software Foundation. All rights reserved.