public class BaseTupleComparator extends TupleComparator implements ProtoObject<IndexProtos.TupleComparatorProto>
Tuple| Constructor and Description |
|---|
BaseTupleComparator(IndexProtos.TupleComparatorProto proto) |
BaseTupleComparator(Schema schema,
SortSpec[] sortKeys) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Tuple tuple1,
Tuple tuple2) |
boolean |
equals(Object obj) |
IndexProtos.TupleComparatorProto |
getProto() |
Schema |
getSchema() |
int[] |
getSortKeyIds() |
SortSpec[] |
getSortSpecs() |
int |
hashCode() |
boolean |
isAscendingFirstKey() |
String |
toString() |
public BaseTupleComparator(Schema schema, SortSpec[] sortKeys)
schema - The schema of input tuplessortKeys - The description of sort keyspublic BaseTupleComparator(IndexProtos.TupleComparatorProto proto)
public Schema getSchema()
public SortSpec[] getSortSpecs()
public int[] getSortKeyIds()
public boolean isAscendingFirstKey()
isAscendingFirstKey in class TupleComparatorpublic int compare(Tuple tuple1, Tuple tuple2)
compare in interface Comparator<Tuple>compare in class TupleComparatorpublic boolean equals(Object obj)
equals in interface Comparator<Tuple>equals in class Objectpublic IndexProtos.TupleComparatorProto getProto()
getProto in interface ProtoObject<IndexProtos.TupleComparatorProto>Copyright © 2016 Apache Software Foundation. All Rights Reserved.