R
- public static class AbstractElementBuffer.InsertBuffer<R> extends AbstractElementBuffer<R>
IMutableRelation.insert(IChunkedOrderedIterator)
when it is flushed
.AbstractElementBuffer.DeleteBuffer<R>, AbstractElementBuffer.InsertBuffer<R>
Constructor and Description |
---|
AbstractElementBuffer.InsertBuffer(int capacity,
IMutableRelation<R> relation,
IKeyOrder<R> keyOrder,
IElementFilter<R> filter)
Ctor variant used when you have a strong guarantee of the
order in which the elements will be written into the buffer.
|
Modifier and Type | Method and Description |
---|---|
protected long |
flush(IChunkedOrderedIterator<R> itr)
Concrete implementations must process the elements, causing the
appropriate mutation on the target
IRelation . |
flush, getKeyOrder, getRelation
public AbstractElementBuffer.InsertBuffer(int capacity, IMutableRelation<R> relation, IKeyOrder<R> keyOrder, IElementFilter<R> filter)
capacity
- relation
- keyOrder
- filter
- protected long flush(IChunkedOrderedIterator<R> itr)
AbstractElementBuffer
IRelation
.
Note: The elements generally appear in an arbitrary order and need to be
sorted into ordered chunks using IKeyOrder.getComparator()
for
the desired natural order(s).
flush
in class AbstractElementBuffer<R>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.