DfsReader: Make PackLoadListener interface visible to subclasses
A subclass cannot implement a listener with the default access. Make the interface protected. Not public because so far only subclasses are interested in this interface. We can widen the visibility later if needed. Change-Id: I54e5c0ef1312dfe2fa660bc8fb54e2be35c0f6df
This commit is contained in:
parent
6f73336939
commit
9919a9faaf
|
@ -839,7 +839,7 @@ public DfsReaderIoStats getIoStats() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Announces when data is loaded by reader */
|
/** Announces when data is loaded by reader */
|
||||||
interface PackLoadListener {
|
protected interface PackLoadListener {
|
||||||
/**
|
/**
|
||||||
* Immutable copy of a DFS block metadata
|
* Immutable copy of a DFS block metadata
|
||||||
*/
|
*/
|
||||||
|
@ -856,11 +856,11 @@ private DfsBlockData(DfsBlock src) {
|
||||||
this.size = src.size();
|
this.size = src.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
int getIdentityHash() {
|
public int getIdentityHash() {
|
||||||
return identityHash;
|
return identityHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
int getSize() {
|
public int getSize() {
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -900,7 +900,7 @@ void onIndexLoad(String packName, PackSource src, PackExt ext, long size,
|
||||||
* @param ext
|
* @param ext
|
||||||
* Extension in the pack (e.g. PACK or REFTABLE)
|
* Extension in the pack (e.g. PACK or REFTABLE)
|
||||||
* @param position
|
* @param position
|
||||||
* Block offset being loaded
|
* Offset in the file requested by caller
|
||||||
* @param dfsBlockData
|
* @param dfsBlockData
|
||||||
* Metadata of the block
|
* Metadata of the block
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue