public static class CachableBlockFile.CachedBlockRead extends DataInputStream
in
Constructor and Description |
---|
CachedBlockRead(CacheEntry cb,
byte[] buf) |
CachedBlockRead(InputStream in) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer() |
<T extends CacheEntry.Weighable> |
getIndex(Supplier<T> indexSupplier) |
int |
getPosition() |
void |
indexWeightChanged() |
boolean |
isIndexable() |
void |
seek(int position) |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
available, close, mark, markSupported, read, reset, skip
public CachedBlockRead(InputStream in)
public CachedBlockRead(CacheEntry cb, byte[] buf)
public void seek(int position)
public int getPosition()
public boolean isIndexable()
public byte[] getBuffer()
public <T extends CacheEntry.Weighable> T getIndex(Supplier<T> indexSupplier)
public void indexWeightChanged()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.