public class DiskStore extends BlockStore implements Logging
| Constructor and Description |
|---|
DiskStore(BlockManager blockManager,
DiskBlockManager diskManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(BlockId blockId) |
scala.Option<java.nio.ByteBuffer> |
getBytes(BlockId blockId) |
scala.Option<java.nio.ByteBuffer> |
getBytes(FileSegment segment) |
long |
getSize(BlockId blockId)
Return the size of a block in bytes.
|
scala.Option<scala.collection.Iterator<Object>> |
getValues(BlockId blockId) |
scala.Option<scala.collection.Iterator<Object>> |
getValues(BlockId blockId,
Serializer serializer)
A version of getValues that allows a custom serializer.
|
long |
minMemoryMapBytes() |
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 DiskStore(BlockManager blockManager, DiskBlockManager diskManager)
public long minMemoryMapBytes()
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 scala.Option<java.nio.ByteBuffer> getBytes(BlockId blockId)
getBytes in class BlockStorepublic scala.Option<java.nio.ByteBuffer> getBytes(FileSegment segment)
public scala.Option<scala.collection.Iterator<Object>> getValues(BlockId blockId)
getValues in class BlockStorepublic scala.Option<scala.collection.Iterator<Object>> getValues(BlockId blockId, Serializer serializer)
public boolean remove(BlockId blockId)
BlockStoreremove in class BlockStoreblockId - the block to remove.public boolean contains(BlockId blockId)
contains in class BlockStore