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, 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 DiskStore(BlockManager blockManager, DiskBlockManager diskManager)
public long minMemoryMapBytes()
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 scala.Option<java.nio.ByteBuffer> getBytes(BlockId blockId)
getBytes
in class BlockStore
public scala.Option<java.nio.ByteBuffer> getBytes(FileSegment segment)
public scala.Option<scala.collection.Iterator<Object>> getValues(BlockId blockId)
getValues
in class BlockStore
public scala.Option<scala.collection.Iterator<Object>> getValues(BlockId blockId, Serializer serializer)
public boolean remove(BlockId blockId)
BlockStore
remove
in class BlockStore
blockId
- the block to remove.public boolean contains(BlockId blockId)
contains
in class BlockStore