public class TachyonStore extends BlockStore implements Logging
Constructor and Description |
---|
TachyonStore(BlockManager blockManager,
TachyonBlockManager tachyonManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(BlockId blockId) |
scala.Option<java.nio.ByteBuffer> |
getBytes(BlockId blockId) |
long |
getSize(BlockId blockId)
Return the size of a block in bytes.
|
scala.Option<scala.collection.Iterator<Object>> |
getValues(BlockId blockId) |
PutResult |
putArray(BlockId blockId,
Object[] values,
StorageLevel level,
boolean returnValues) |
PutResult |
putBytes(BlockId blockId,
java.nio.ByteBuffer bytes,
StorageLevel level) |
PutResult |
putIterator(BlockId blockId,
scala.collection.Iterator<Object> values,
StorageLevel level,
boolean returnValues)
Put in a block and, possibly, also return its content as either bytes or another Iterator.
|
boolean |
remove(BlockId blockId)
Remove a block, if it exists.
|
blockManager, clear
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public TachyonStore(BlockManager blockManager, TachyonBlockManager tachyonManager)
public long getSize(BlockId blockId)
BlockStore
getSize
in class BlockStore
public PutResult putBytes(BlockId blockId, java.nio.ByteBuffer bytes, StorageLevel level)
putBytes
in class BlockStore
public PutResult putArray(BlockId blockId, Object[] values, StorageLevel level, boolean returnValues)
putArray
in class BlockStore
public PutResult putIterator(BlockId blockId, scala.collection.Iterator<Object> values, StorageLevel level, boolean returnValues)
BlockStore
putIterator
in class BlockStore
public boolean remove(BlockId blockId)
BlockStore
remove
in class BlockStore
blockId
- the block to remove.public scala.Option<scala.collection.Iterator<Object>> getValues(BlockId blockId)
getValues
in class BlockStore
public scala.Option<java.nio.ByteBuffer> getBytes(BlockId blockId)
getBytes
in class BlockStore
public boolean contains(BlockId blockId)
contains
in class BlockStore