public abstract class EntityIndexBuilder extends Object
Builder for entity indexes. These builders are destructive: their build()
method will destroy the builder’s internal state to free memory.
Constructor and Description |
---|
EntityIndexBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(Entity e)
Add an entity to the index.
|
abstract EntityIndex |
build()
Build the entity index.
|
static EntityIndexBuilder |
create(TypedName<?> name)
Create an entity index builder for an attribute.
|
public abstract void add(Entity e)
Add an entity to the index.
e
- The entity to add.IllegalStateException
- if build()
has been called.public abstract EntityIndex build()
Build the entity index.
public static EntityIndexBuilder create(TypedName<?> name)
Create an entity index builder for an attribute.
name
- The attribute.