Package org.neo4j.gds.compat
Interface InMemoryPropertySelection
-
public interface InMemoryPropertySelection
-
-
Field Summary
Fields Modifier and Type Field Description static InMemoryPropertySelectionSELECT_ALL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisKeysOnly()A hint that the creator of this selection isn't interested in the actual values, only the existence of the keys.booleanisLimited()intkey(int index)intnumberOfKeys()booleantest(int key)
-
-
-
Field Detail
-
SELECT_ALL
static final InMemoryPropertySelection SELECT_ALL
-
-
Method Detail
-
isLimited
boolean isLimited()
- Returns:
trueif this selection limits which keys will be selected, otherwisefalseif all will be selected.
-
numberOfKeys
int numberOfKeys()
- Returns:
- the number of keys in this selection. If the selection is not limited 1 is returned
1and with the keyTokenConstants.ANY_PROPERTY_KEYfrom a call tokey(0).
-
key
int key(int index)
- Parameters:
index- the selection index. A selection can have multiple keys.- Returns:
- the key for the given selection index.
-
test
boolean test(int key)
- Parameters:
key- the key to tests whether or not it fits the criteria of this selection.- Returns:
trueif the givenkeyis part of this selection, otherwisefalse.
-
isKeysOnly
boolean isKeysOnly()
A hint that the creator of this selection isn't interested in the actual values, only the existence of the keys.- Returns:
trueif only keys will be extracted where this selection is used, otherwisefalseif also values will be extracted.
-
-