T
- type of itempublic static class ItemsSketch.Row<T> extends Object implements Comparable<ItemsSketch.Row<T>>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ItemsSketch.Row<T> that)
This compareTo is strictly limited to the Row.getEstimate() value and does not imply any
ordering whatsoever to the other elements of the row: item and upper and lower bounds.
|
boolean |
equals(Object obj)
This equals is computed only from the Row.getEstimate() value and does not imply equality
of the other items within the row: item and upper and lower bounds.
|
long |
getEstimate() |
T |
getItem() |
long |
getLowerBound() |
static String |
getRowHeader() |
long |
getUpperBound() |
int |
hashCode()
This hashCode is computed only from the Row.getEstimate() value.
|
String |
toString() |
public T getItem()
public long getEstimate()
public long getUpperBound()
public long getLowerBound()
public static String getRowHeader()
public int compareTo(ItemsSketch.Row<T> that)
compareTo
in interface Comparable<ItemsSketch.Row<T>>
that
- the other row to compare to.public int hashCode()
public boolean equals(Object obj)
Copyright © 2015–2021 The Apache Software Foundation. All rights reserved.