public class TimestampDedupIterator extends AbstractPeekableIterator<String>
| Modifier and Type | Field and Description |
|---|---|
protected CloseableIterator<String> |
inner |
protected boolean |
isFirst |
protected String |
nextLine |
protected String |
nextStamp |
protected int |
timestampDedupLength |
| Constructor and Description |
|---|
TimestampDedupIterator(CloseableIterator<String> inner,
int timestampDedupLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected String |
extractMatchKey(String line) |
String |
getNextInner() |
protected String |
getNthField(String source,
int start,
int num,
int ch) |
protected boolean |
isSame(String currStamp,
String nextStamp,
String currLine,
String nextLine) |
getComparator, hasNext, next, peek, remove, wrap, wrapReaderprotected int timestampDedupLength
protected CloseableIterator<String> inner
protected boolean isFirst
protected String nextLine
protected String nextStamp
public TimestampDedupIterator(CloseableIterator<String> inner, int timestampDedupLength)
protected boolean isSame(String currStamp, String nextStamp, String currLine, String nextLine)
public String getNextInner()
getNextInner in class AbstractPeekableIterator<String>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class AbstractPeekableIterator<String>IOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.