Package org.apache.jena.riot.lang
Interface BlankNodeAllocator
-
- All Known Implementing Classes:
BlankNodeAllocatorFixedSeedHash,BlankNodeAllocatorGlobal,BlankNodeAllocatorHash,BlankNodeAllocatorLabel,BlankNodeAllocatorLabelEncoded
public interface BlankNodeAllocatorInterface to allocators for blank nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Nodealloc(java.lang.String label)Allocate based on a non-null label.Nodecreate()Create a fresh blank node, different from anything generated so far.voidreset()Reset allocation state - calls toalloc(java.lang.String)orcreate()
-
-
-
Method Detail
-
alloc
Node alloc(java.lang.String label)
Allocate based on a non-null label. Calling this twice, with the same label will generate equivalent nodes but they may not be identical (i.e they are .equals but may not be ==)
-
create
Node create()
Create a fresh blank node, different from anything generated so far. Will not clash with a node allocated byalloc(java.lang.String)
-
reset
void reset()
Reset allocation state - calls toalloc(java.lang.String)orcreate()
-
-