@InterfaceAudience.Private @InterfaceStability.Unstable public interface CellScanner
The core data block decoder should be as fast as possible, so we push the complexity and performance expense of concurrently tracking multiple cells to layers above the CellScanner.
The current()
method will return a reference to a Cell implementation. This reference
may or may not point to a reusable cell implementation, so users of the CellScanner should not,
for example, accumulate a List of Cells. All of the references may point to the same object,
which would be the latest state of the underlying Cell. In short, the Cell is mutable.
while (scanner.advance()) { Cell cell = scanner.current(); // do something }
Often used reading Cell
s written by
CellOutputStream
.
Cell current()
boolean advance() throws IOException
current()
will return a valid CellIOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.