Class CachableBlockFile.CachedBlockRead
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- org.apache.accumulo.core.file.blockfile.impl.CachableBlockFile.CachedBlockRead
-
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
- Enclosing class:
- CachableBlockFile
public static class CachableBlockFile.CachedBlockRead extends DataInputStream
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description CachedBlockRead(InputStream in)
CachedBlockRead(CacheEntry cb, byte[] buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBuffer()
BlockIndex
getIndex(Supplier<BlockIndex> indexSupplier)
int
getPosition()
void
indexWeightChanged()
boolean
isIndexable()
void
seek(int position)
-
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
CachedBlockRead
public CachedBlockRead(InputStream in)
-
CachedBlockRead
public CachedBlockRead(CacheEntry cb, byte[] buf)
-
-
Method Detail
-
seek
public void seek(int position)
-
getPosition
public int getPosition()
-
isIndexable
public boolean isIndexable()
-
getBuffer
public byte[] getBuffer()
-
getIndex
public BlockIndex getIndex(Supplier<BlockIndex> indexSupplier)
-
indexWeightChanged
public void indexWeightChanged()
-
-