com.bigdata.relation.rule.eval
Class AbstractSolutionBuffer.InsertSolutionBuffer<E>
java.lang.Object
com.bigdata.relation.accesspath.AbstractArrayBuffer<ISolution<R>[]>
com.bigdata.relation.rule.eval.AbstractSolutionBuffer<E>
com.bigdata.relation.rule.eval.AbstractSolutionBuffer.InsertSolutionBuffer<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- IBuffer<ISolution<E>[]>
- Enclosing class:
- AbstractSolutionBuffer<R>
public static class AbstractSolutionBuffer.InsertSolutionBuffer<E>
- extends AbstractSolutionBuffer<E>
Buffer writes on IMutableRelation#insert(IChunkedIterator) when it is
flushed.
- Version:
- $Id: AbstractSolutionBuffer.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSolutionBuffer.InsertSolutionBuffer
public AbstractSolutionBuffer.InsertSolutionBuffer(int capacity,
IMutableRelation<E> relation)
- Parameters:
capacity - relation -
flush
protected long flush(IChunkedOrderedIterator<ISolution<E>> itr)
- Description copied from class:
AbstractSolutionBuffer
- Concrete implementations must process the
ISolutions, causing
the appropriate mutation on the target IRelation.
Note: The ISolutions generally appear in an arbitrary order.
They can either be resolved to IRelation elements or be sorted
into ordered ISolution chunks using a SolutionComparator.
- Specified by:
flush in class AbstractSolutionBuffer<E>
- Parameters:
itr - The iterator (the order of the elements is unknown).
- Returns:
- The #of elements that were modified in the backing relation when
the buffer was flushed
Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.