MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / isCorrectOrder

Function isCorrectOrder

src/processor/operator/path_property_probe.cpp:79–84  ·  view source on GitHub ↗

TODO(Xiyang): revisit me. Instead of printing in src->dst order. Maybe left->right order make more sense. Truth table. Edge Direction | ExtendFromSource | Result FWD | T | T FWD | F | F BWD | T | F BWD | F | T

Source from the content-addressed store, hash-verified

77// BWD | T | F
78// BWD | F | T
79static bool isCorrectOrder(ValueVector* vector, sel_t pos, bool extendFromSource) {
80 if (extendFromSource) {
81 return vector->getValue<bool>(pos);
82 }
83 return !vector->getValue<bool>(pos);
84}
85
86static void writeSrcDstNodeIDs(nodeID_t fromID, nodeID_t toID, ValueVector* directionDataVector,
87 ValueVector* srcNodeIDsDataVector, ValueVector* dstNodeIDsDataVector, sel_t pos, bool flag) {

Callers 2

writeSrcDstNodeIDsFunction · 0.85
getNextTuplesInternalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected