Class DefaultMultiLaneResult
java.lang.Object
org.impulsegraph.vm.traversal.DefaultMultiLaneResult
- All Implemented Interfaces:
MultiLaneResult
Default implementation of
MultiLaneResult backed by a 64-lane
bit-sliced word array.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMultiLaneResult(ImpulseGraphSnapshot snapshot, String domainName, int domainId, int domainNodeCount, int laneCount, List<String> laneKeys, long[] laneMasks) -
Method Summary
Modifier and TypeMethodDescriptionattributionFor(long nodeId) intdomainId()intfindGreedyKeySetCover(long targetMask, int maxNodes) findGreedySetCover(long targetMask, int maxNodes) findKeySetCoverPairs(long targetMask) findSetCoverPairs(long targetMask) keyAttributionFor(String nodeKey) keysWithQuorum(int minLanes) intlonglaneMaskFor(long nodeId) intlanePopcountFor(long nodeId) nodesWithQuorum(int minLanes) topK(float[] queryVec, int k) topKKeys(float[] queryVec, int k) topKWithQuorum(float[] queryVec, int minQuorum, int k) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MultiLaneResult
allReachedLanesMask, findGreedyKeySetCover, findGreedySetCover, findKeySetCoverPairs, findSetCoverPairs, quorumFor, universalBridgeLanesMask, unreachedLanesMask
-
Constructor Details
-
DefaultMultiLaneResult
public DefaultMultiLaneResult(ImpulseGraphSnapshot snapshot, String domainName, int domainId, int domainNodeCount, int laneCount, List<String> laneKeys, long[] laneMasks)
-
-
Method Details
-
laneCount
public int laneCount()- Specified by:
laneCountin interfaceMultiLaneResult
-
domainNodeCount
public int domainNodeCount()- Specified by:
domainNodeCountin interfaceMultiLaneResult
-
domainId
public int domainId()- Specified by:
domainIdin interfaceMultiLaneResult
-
domainName
- Specified by:
domainNamein interfaceMultiLaneResult
-
laneMaskFor
public long laneMaskFor(long nodeId) - Specified by:
laneMaskForin interfaceMultiLaneResult
-
lanePopcountFor
public int lanePopcountFor(long nodeId) - Specified by:
lanePopcountForin interfaceMultiLaneResult
-
attributionFor
- Specified by:
attributionForin interfaceMultiLaneResult
-
keyAttributionFor
- Specified by:
keyAttributionForin interfaceMultiLaneResult
-
nodesWithQuorum
- Specified by:
nodesWithQuorumin interfaceMultiLaneResult
-
keysWithQuorum
- Specified by:
keysWithQuorumin interfaceMultiLaneResult
-
findSetCoverPairs
- Specified by:
findSetCoverPairsin interfaceMultiLaneResult
-
findGreedySetCover
- Specified by:
findGreedySetCoverin interfaceMultiLaneResult
-
findKeySetCoverPairs
- Specified by:
findKeySetCoverPairsin interfaceMultiLaneResult
-
findGreedyKeySetCover
- Specified by:
findGreedyKeySetCoverin interfaceMultiLaneResult
-
topK
- Specified by:
topKin interfaceMultiLaneResult
-
topK
- Specified by:
topKin interfaceMultiLaneResult
-
topKKeys
- Specified by:
topKKeysin interfaceMultiLaneResult
-
topKWithQuorum
- Specified by:
topKWithQuorumin interfaceMultiLaneResult
-