public override int CompareTo(CountsKey other) { if (other is IndexKey) { return(Long.compare(_indexId, (( IndexKey )other).IndexId())); } return(RecordType().compareTo(other.RecordType())); }
public override int CompareTo(CountsKey other) { if (other is IndexSampleKey) { return(base.CompareTo(other)); } return(RecordType().compareTo(other.RecordType())); }
public Difference(CountsKey key, long expectedFirst, long expectedSecond, long actualFirst, long actualSecond) { this.ExpectedFirst = expectedFirst; this.ExpectedSecond = expectedSecond; this.ActualFirst = actualFirst; this.ActualSecond = actualSecond; this.KeyConflict = requireNonNull(key, "key"); }
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())); }
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())); }
internal virtual void Verify(CountsKey key, long actualFirst, long actualSecond) { Register_DoubleLongRegister expected = Counts.Remove(key); if (expected == null) { if (actualFirst != 0 || actualSecond != 0) { DifferencesConflict.Add(new Difference(key, 0, 0, actualFirst, actualSecond)); } } else { long expectedFirst = expected.ReadFirst(); long expectedSecond = expected.ReadSecond(); if (expectedFirst != actualFirst || expectedSecond != actualSecond) { DifferencesConflict.Add(new Difference(key, expectedFirst, expectedSecond, actualFirst, actualSecond)); } } }
protected internal override bool include(CountsKey countsKey, ReadableBuffer value) { _barrier.reached(); return(base.include(countsKey, value)); }
protected internal override bool VisitKeyValuePair(CountsKey key, ReadableBuffer value) { key.Accept(Visitor, value.GetLong(0), value.GetLong(8)); return(true); }
private Register_DoubleLongRegister Counts(CountsKey key) { return(_counts.computeIfAbsent(key, k => Registers.newDoubleLongRegister(DEFAULT_FIRST_VALUE, DEFAULT_SECOND_VALUE))); }