public class VisibilityFilter extends SynchronizedServerFilter
Filter
and all system iterators where wrapped with a SynchronizedIterator
during creation
of the iterator stack in IteratorUtil
.loadIterators(). For performance reasons, the synchronization was pushed down the stack to this
class.Modifier and Type | Field and Description |
---|---|
protected Authorizations |
authorizations |
protected org.apache.commons.collections.map.LRUMap |
cache |
protected ByteSequence |
defaultVisibility |
protected VisibilityEvaluator |
ve |
source
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(Key k,
Value v) |
SortedKeyValueIterator<Key,Value> |
deepCopy(IteratorEnvironment env)
Creates a deep copy of this iterator as though seek had not yet been called.
|
static SortedKeyValueIterator<Key,Value> |
wrap(SortedKeyValueIterator<Key,Value> source,
Authorizations authorizations,
byte[] defaultVisibility) |
getTopKey, getTopValue, hasTop, init, next, seek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableYielding
protected VisibilityEvaluator ve
protected ByteSequence defaultVisibility
protected org.apache.commons.collections.map.LRUMap cache
protected Authorizations authorizations
public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
SortedKeyValueIterator
deepCopy
in interface SortedKeyValueIterator<Key,Value>
deepCopy
in class SynchronizedServerFilter
env
- IteratorEnvironment environment in which iterator is being run.protected boolean accept(Key k, Value v)
accept
in class SynchronizedServerFilter
public static SortedKeyValueIterator<Key,Value> wrap(SortedKeyValueIterator<Key,Value> source, Authorizations authorizations, byte[] defaultVisibility)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.