protected static class AbstractHashJoinUtilityTestCase.TestBuffer<E> extends Object implements IBuffer<E>
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractHashJoinUtilityTestCase.TestBuffer() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(E e)Add an element to the buffer. | 
| long | flush()Flush the buffer and return the #of elements written on the backing
  IRelationsince the counter was lastIBuffer.reset()(the
 mutationCount). | 
| boolean | isEmpty()True iff there are no elements in the buffer. | 
| Iterator<E> | iterator() | 
| void | reset()Reset the state of the buffer, including the counter whose value is
 reported by  IBuffer.flush(). | 
| int | size()The #of elements currently in the buffer. | 
protected AbstractHashJoinUtilityTestCase.TestBuffer()
public int size()
IBufferpublic boolean isEmpty()
IBufferpublic long flush()
IBufferIRelation since the counter was last IBuffer.reset() (the
 mutationCount).
 
 Note: If the buffer does not write on an IRelation then it SHOULD
 return ZERO(0).
flush in interface IBuffer<E>IRelation.
 
 See IMutableRelationpublic void reset()
IBufferIBuffer.flush(). Any data in the buffer will be discarded.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.