public class LabelToNode extends MapWithScope<String,Node,Node>
SyntaxLabels.createLabelToNode()
for getting a default setup.MapWithScope.Allocator<A,B>, MapWithScope.ScopePolicy<A,B,S>
Constructor and Description |
---|
LabelToNode(MapWithScope.ScopePolicy<String,Node,Node> scopePolicy,
MapWithScope.Allocator<String,Node> allocator) |
Modifier and Type | Method and Description |
---|---|
static LabelToNode |
createIncremental()
Allocation, globally scoped, that uses a incrementing field to create new nodes
|
static LabelToNode |
createScopeByDocument()
Allocation from a single scope; just the label matters.
|
static LabelToNode |
createScopeByDocumentHash() |
static LabelToNode |
createScopeByGraph()
Allocation scoped by graph and label.
|
static LabelToNode |
createUseLabelAsGiven()
Allocation using syntax label; output is unsafe for reading (use
createUseLabelEncoded() for output-input). |
static LabelToNode |
createUseLabelEncoded()
Allocation using an encoded syntax label
(i.e.
|
clear, create, get
public LabelToNode(MapWithScope.ScopePolicy<String,Node,Node> scopePolicy, MapWithScope.Allocator<String,Node> allocator)
public static LabelToNode createScopeByDocument()
public static LabelToNode createScopeByDocumentHash()
public static LabelToNode createScopeByGraph()
public static LabelToNode createUseLabelAsGiven()
createUseLabelEncoded()
for output-input).
The reverse operation is provided by NodeToLabel.createBNodeByLabelAsGiven()
public static LabelToNode createUseLabelEncoded()
NodeFmtLib.encodeBNodeLabel(java.lang.String)
).
The reverse operation is provided by NodeToLabel.createBNodeByLabelEncoded()
public static LabelToNode createIncremental()
Licenced under the Apache License, Version 2.0