public class DfsReftable extends BlockBasedFile
DfsBlockCache.| Modifier and Type | Class and Description |
|---|---|
private static class |
DfsReftable.CacheSource |
| Constructor and Description |
|---|
DfsReftable(DfsBlockCache cache,
DfsPackDescription desc)
Construct a reader for an existing reftable.
|
DfsReftable(DfsPackDescription desc)
Construct a reader for an existing reftable.
|
| Modifier and Type | Method and Description |
|---|---|
DfsPackDescription |
getPackDescription()
Get description that was originally used to configure this file.
|
ReftableReader |
open(DfsReader ctx)
Open reader on the reftable.
|
alignToBlock, blockSize, elapsedMicros, getFileName, getOrLoadBlock, invalid, read, readOneBlock, setBlockSize, setInvalidpublic DfsReftable(DfsPackDescription desc)
desc - description of the reftable within the DFS.public DfsReftable(DfsBlockCache cache, DfsPackDescription desc)
cache - cache that will store the reftable data.desc - description of the reftable within the DFS.public DfsPackDescription getPackDescription()
public ReftableReader open(DfsReader ctx) throws java.io.IOException
The returned reader is not thread safe.
ctx - reader to access the DFS storage.java.io.IOException - table cannot be opened.