public class WriteAheadLogReader extends Object implements scala.collection.Iterator<java.nio.ByteBuffer>, java.io.Closeable, Logging
WriteAheadLogWriter
. This reads
the records (bytebuffers) in the log file sequentially and return them as an
iterator of bytebuffers.scala.collection.Iterator.GroupedIterator<B>
scala.collection.TraversableOnce.BufferedCanBuildFrom<A,Coll extends scala.collection.TraversableOnce<Object>>, scala.collection.TraversableOnce.FlattenOps<A>, scala.collection.TraversableOnce.ForceImplicitAmbiguity, scala.collection.TraversableOnce.MonadOps<A>, scala.collection.TraversableOnce.OnceCanBuildFrom<A>
Constructor and Description |
---|
WriteAheadLogReader(String path,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
java.nio.ByteBuffer |
next() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
$plus$plus, buffered, collect, contains, copyToArray, corresponds, drop, dropWhile, duplicate, exists, filter, filterNot, find, flatMap, forall, foreach, grouped, hasDefiniteSize, indexOf, indexWhere, isEmpty, isTraversableAgain, length, map, padTo, partition, patch, sameElements, scanLeft, scanRight, seq, slice, sliding, sliding$default$2, span, take, takeWhile, toIterator, toStream, toString, toTraversable, withFilter, zip, zipAll, zipWithIndex
$colon$bslash, $div$colon, addString, addString, addString, aggregate, collectFirst, copyToArray, copyToArray, copyToBuffer, count, fold, foldLeft, foldRight, max, maxBy, min, minBy, mkString, mkString, mkString, nonEmpty, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRight, reduceRightOption, reversed, size, sum, to, toArray, toBuffer, toIndexedSeq, toIterable, toList, toMap, toSeq, toSet, toVector
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public WriteAheadLogReader(String path, org.apache.hadoop.conf.Configuration conf)
public boolean hasNext()
hasNext
in interface scala.collection.Iterator<java.nio.ByteBuffer>
public java.nio.ByteBuffer next()
next
in interface scala.collection.Iterator<java.nio.ByteBuffer>
public void close()
close
in interface java.io.Closeable
close
in interface AutoCloseable