Example #1
0
 public override int CompareTo(CountsKey other)
 {
     if (other is IndexSampleKey)
     {
         return(base.CompareTo(other));
     }
     return(RecordType().compareTo(other.RecordType()));
 }
Example #2
0
 public override int CompareTo(CountsKey other)
 {
     if (other is IndexKey)
     {
         return(Long.compare(_indexId, (( IndexKey )other).IndexId()));
     }
     return(RecordType().compareTo(other.RecordType()));
 }
Example #3
0
 public override int CompareTo(CountsKey other)
 {
     if (other is Org.Neo4j.Kernel.impl.store.counts.keys.NodeKey)
     {
         Org.Neo4j.Kernel.impl.store.counts.keys.NodeKey that = (Org.Neo4j.Kernel.impl.store.counts.keys.NodeKey)other;
         return(Integer.compare(this._labelId, that._labelId));
     }
     return(RecordType().compareTo(other.RecordType()));
 }
Example #4
0
 public override int CompareTo(CountsKey other)
 {
     if (other is RelationshipKey)
     {
         RelationshipKey that = ( RelationshipKey )other;
         if (this._typeId != that._typeId)
         {
             return(Integer.compare(this._typeId, that._typeId));
         }
         if (this._startLabelId != that._startLabelId)
         {
             return(Integer.compare(this._startLabelId, that._startLabelId));
         }
         return(Integer.compare(this._endLabelId, that._endLabelId));
     }
     return(RecordType().compareTo(other.RecordType()));
 }