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, clearequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic TachyonStore(BlockManager blockManager, TachyonBlockManager tachyonManager)
public long getSize(BlockId blockId)
BlockStoregetSize in class BlockStorepublic PutResult putBytes(BlockId blockId, java.nio.ByteBuffer bytes, StorageLevel level)
putBytes in class BlockStorepublic PutResult putArray(BlockId blockId, Object[] values, StorageLevel level, boolean returnValues)
putArray in class BlockStorepublic PutResult putIterator(BlockId blockId, scala.collection.Iterator<Object> values, StorageLevel level, boolean returnValues)
BlockStoreputIterator in class BlockStorepublic boolean remove(BlockId blockId)
BlockStoreremove in class BlockStoreblockId - the block to remove.public scala.Option<scala.collection.Iterator<Object>> getValues(BlockId blockId)
getValues in class BlockStorepublic scala.Option<java.nio.ByteBuffer> getBytes(BlockId blockId)
getBytes in class BlockStorepublic boolean contains(BlockId blockId)
contains in class BlockStore