Package org.neo4j.gds.core.loading
Class LabelInformation
- java.lang.Object
-
- org.neo4j.gds.core.loading.LabelInformation
-
public final class LabelInformation extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LabelInformation.Builder
static interface
LabelInformation.LabelInformationConsumer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<org.neo4j.gds.NodeLabel>
availableNodeLabels()
static LabelInformation.Builder
builder(long expectedCapacity, com.carrotsearch.hppc.IntObjectMap<java.util.List<org.neo4j.gds.NodeLabel>> labelTokenNodeLabelMapping, AllocationTracker allocationTracker)
static LabelInformation.Builder
builder(long expectedCapacity, AllocationTracker allocationTracker)
static LabelInformation.Builder
emptyBuilder(AllocationTracker allocationTracker)
LabelInformation
filter(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels)
void
forEach(LabelInformation.LabelInformationConsumer consumer)
void
forEachNodeLabel(long nodeId, NodeMapping.NodeLabelConsumer consumer)
static LabelInformation
from(java.util.Map<org.neo4j.gds.NodeLabel,com.carrotsearch.hppc.BitSet> labelInformation)
boolean
hasLabel(long nodeId, org.neo4j.gds.NodeLabel nodeLabel)
boolean
isEmpty()
java.util.Set<org.neo4j.gds.NodeLabel>
labelSet()
java.util.Set<org.neo4j.gds.NodeLabel>
nodeLabelsForNodeId(long nodeId)
com.carrotsearch.hppc.BitSet
unionBitSet(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels, long nodeCount)
void
validateNodeLabelFilter(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels)
-
-
-
Method Detail
-
from
public static LabelInformation from(java.util.Map<org.neo4j.gds.NodeLabel,com.carrotsearch.hppc.BitSet> labelInformation)
-
isEmpty
public boolean isEmpty()
-
labelSet
public java.util.Set<org.neo4j.gds.NodeLabel> labelSet()
-
forEach
public void forEach(LabelInformation.LabelInformationConsumer consumer)
-
filter
public LabelInformation filter(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels)
-
unionBitSet
public com.carrotsearch.hppc.BitSet unionBitSet(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels, long nodeCount)
-
hasLabel
public boolean hasLabel(long nodeId, org.neo4j.gds.NodeLabel nodeLabel)
-
availableNodeLabels
public java.util.Set<org.neo4j.gds.NodeLabel> availableNodeLabels()
-
nodeLabelsForNodeId
public java.util.Set<org.neo4j.gds.NodeLabel> nodeLabelsForNodeId(long nodeId)
-
forEachNodeLabel
public void forEachNodeLabel(long nodeId, NodeMapping.NodeLabelConsumer consumer)
-
validateNodeLabelFilter
public void validateNodeLabelFilter(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels)
-
emptyBuilder
public static LabelInformation.Builder emptyBuilder(AllocationTracker allocationTracker)
-
builder
public static LabelInformation.Builder builder(long expectedCapacity, AllocationTracker allocationTracker)
-
builder
public static LabelInformation.Builder builder(long expectedCapacity, com.carrotsearch.hppc.IntObjectMap<java.util.List<org.neo4j.gds.NodeLabel>> labelTokenNodeLabelMapping, AllocationTracker allocationTracker)
-
-