Class ProblemReportingIterator
- java.lang.Object
-
- org.apache.accumulo.server.problems.ProblemReportingIterator
-
- All Implemented Interfaces:
SortedKeyValueIterator<Key,Value>
,InterruptibleIterator
public class ProblemReportingIterator extends Object implements InterruptibleIterator
-
-
Constructor Summary
Constructors Constructor Description ProblemReportingIterator(AccumuloServerContext context, String tableId, String resource, boolean continueOnError, SortedKeyValueIterator<Key,Value> source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedKeyValueIterator<Key,Value>
deepCopy(IteratorEnvironment env)
String
getResource()
Key
getTopKey()
Value
getTopValue()
boolean
hasTop()
void
init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)
void
next()
boolean
sawError()
void
seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive)
void
setInterruptFlag(AtomicBoolean flag)
-
-
-
Constructor Detail
-
ProblemReportingIterator
public ProblemReportingIterator(AccumuloServerContext context, String tableId, String resource, boolean continueOnError, SortedKeyValueIterator<Key,Value> source)
-
-
Method Detail
-
deepCopy
public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
- Specified by:
deepCopy
in interfaceSortedKeyValueIterator<Key,Value>
-
getTopKey
public Key getTopKey()
- Specified by:
getTopKey
in interfaceSortedKeyValueIterator<Key,Value>
-
getTopValue
public Value getTopValue()
- Specified by:
getTopValue
in interfaceSortedKeyValueIterator<Key,Value>
-
hasTop
public boolean hasTop()
- Specified by:
hasTop
in interfaceSortedKeyValueIterator<Key,Value>
-
init
public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException
- Specified by:
init
in interfaceSortedKeyValueIterator<Key,Value>
- Throws:
IOException
-
next
public void next() throws IOException
- Specified by:
next
in interfaceSortedKeyValueIterator<Key,Value>
- Throws:
IOException
-
seek
public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException
- Specified by:
seek
in interfaceSortedKeyValueIterator<Key,Value>
- Throws:
IOException
-
sawError
public boolean sawError()
-
getResource
public String getResource()
-
setInterruptFlag
public void setInterruptFlag(AtomicBoolean flag)
- Specified by:
setInterruptFlag
in interfaceInterruptibleIterator
-
-