protected final class BufferManager.CloseableDistinctBuffer<T> extends BufferManager.CloseableBuffer implements BufferManager.DistinctBuffer<T>
name, onHeap
Modifier | Constructor and Description |
---|---|
protected |
BufferManager.CloseableDistinctBuffer(String name,
boolean onHeap,
Set<T> buffer) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(T value)
Determine whether the buffer has seen this value.
|
boolean |
isEmpty()
Determine if this buffer is empty.
|
Iterator<T> |
iterator()
Get an iterator over all of the records.
|
long |
size()
Get the size of the buffer.
|
String |
toString() |
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public boolean isEmpty()
BufferManager.Buffer
BufferManager.Buffer.size()
.isEmpty
in interface BufferManager.Buffer
public long size()
BufferManager.Buffer
size
in interface BufferManager.Buffer
public boolean contains(T value)
BufferManager.Predicate
contains
in interface BufferManager.Predicate<T>
value
- the valuepublic Iterator<T> iterator()
BufferManager.DistinctBuffer
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.