org.eclipse.jgit.internal.storage.dfs.DfsBlockCache .
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | DfsReftable(DfsPackDescription
description of the reftable within the DFS. desc)Construct a reader for an existing reftable. |
| public | DfsReftable(DfsBlockCache
cache that will store the reftable data. cache, DfsPackDescription description of the reftable within the DFS. desc)Construct a reader for an existing reftable. |
| Modifier and Type | Method and Description |
|---|---|
| public DfsPackDescription | Returns: description that was originally used to configure this file.Get description that was originally used to configure this file. |
| public ReftableReader |
| DfsReftable | back to summary |
|---|---|
| public DfsReftable(DfsPackDescription desc) Construct a reader for an existing reftable.
| |
| DfsReftable | back to summary |
|---|---|
| public DfsReftable(DfsBlockCache cache, DfsPackDescription desc) Construct a reader for an existing reftable.
| |
| getPackDescription | back to summary |
|---|---|
| public DfsPackDescription getPackDescription() Get description that was originally used to configure this file.
| |
| open | back to summary |
|---|---|
| public ReftableReader open(DfsReader ctx) throws IOException Open reader on the reftable. The returned reader is not thread safe.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final DfsBlockCache | |
| private ReadableChannel | |
| private final DfsReader | |
| private final DfsReftable | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | adviseSequentialRead(long
starting position. start, long ending position. end)Overrides org. Advise the |
| public void | close()
Implements abstract org. Implements java. Closes this resource, relinquishing any underlying resources. |
| private boolean | |
| private ReadableChannel | |
| public ByteBuffer | read(long
position of the block in the file, specified in bytes from the
beginning of the file. pos, int size to read. cnt)Implements abstract org. Read a block from the file. |
| public long | size()
Implements abstract org. Determine the size of the file. |
| cache | back to summary |
|---|---|
| private final DfsBlockCache cache | |
| ch | back to summary |
|---|---|
| private ReadableChannel ch | |
| ctx | back to summary |
|---|---|
| private final DfsReader ctx | |
| file | back to summary |
|---|---|
| private final DfsReftable file | |
| readAhead | back to summary |
|---|---|
| private int readAhead | |
| CacheSource | back to summary |
|---|---|
| pack-priv CacheSource(DfsReftable file, DfsBlockCache cache, DfsReader ctx) | |
| adviseSequentialRead | back to summary |
|---|---|
| public void adviseSequentialRead(long start, long end) Overrides org. Doc from org. Advise the
| |
| close | back to summary |
|---|---|
| public void close() Implements abstract org. Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| notInCache | back to summary |
|---|---|
| private boolean notInCache(long pos) | |
| open | back to summary |
|---|---|
| private ReadableChannel open() throws IOException | |
| read | back to summary |
|---|---|
| public ByteBuffer read(long pos, int cnt) throws IOException Implements abstract org. Doc from org. Read a block from the file.
To reduce copying, the returned ByteBuffer should have an accessible
array and
| |
| size | back to summary |
|---|---|
| public long size() throws IOException Implements abstract org. Doc from org. Determine the size of the file.
| |