@Test public void testCompareTo() throws Exception { assertEquals(cost1.compareTo(cost2), -1); assertEquals(cost2.compareTo(cost1), 1); assertEquals(cost1.compareTo(cost11), 0); assertEquals(scost1.compareTo(scost0), 1); assertEquals(scost0.compareTo(scost1), -1); assertEquals(scost2.compareTo(scost0), 1); }
@Override public int compareTo(final FactPartitionBasedQueryCost o) { return new Double(partitionCost).compareTo(o.partitionCost); }
FactPartitionBasedQueryCost implements QueryCost<FactPartitionBasedQueryCost>, Serializable { @Override public int compareTo(final FactPartitionBasedQueryCost o) { return new Double(partitionCost).compareTo(o.partitionCost); } }
FactPartitionBasedQueryCost implements QueryCost<FactPartitionBasedQueryCost>, Serializable { @Override public int compareTo(final FactPartitionBasedQueryCost o) { return new Double(partitionCost).compareTo(o.partitionCost); } FactPartitionBasedQueryCost(final double partitionCost); }
FactPartitionBasedQueryCost implements QueryCost<FactPartitionBasedQueryCost>, Serializable { @Override public int compareTo(final FactPartitionBasedQueryCost o) { return new Double(partitionCost).compareTo(o.partitionCost); } FactPartitionBasedQueryCost(final double partitionCost); @Override FactPartitionBasedQueryCost add(final FactPartitionBasedQueryCost other); @Override long getEstimatedExecTimeMillis(); @Override double getEstimatedResourceUsage(); @Override int compareTo(final FactPartitionBasedQueryCost o); @Override String toString(); }
FactPartitionBasedQueryCost implements QueryCost<FactPartitionBasedQueryCost>, Serializable { @Override public int compareTo(final FactPartitionBasedQueryCost o) { return new Double(partitionCost).compareTo(o.partitionCost); } FactPartitionBasedQueryCost(final double partitionCost); @Override FactPartitionBasedQueryCost add(final FactPartitionBasedQueryCost other); @Override long getEstimatedExecTimeMillis(); @Override double getEstimatedResourceUsage(); @Override int compareTo(final FactPartitionBasedQueryCost o); @Override String toString();  }