public class TransientBufferStrategy extends BasicBufferStrategy
BufferMode.Transient
extent, userExtent
bufferMode, commitOffset, ERR_ADDRESS_IS_NULL, ERR_ADDRESS_NOT_WRITTEN, ERR_BAD_RECORD_SIZE, ERR_BUFFER_EMPTY, ERR_BUFFER_NULL, ERR_BUFFER_OVERRUN, ERR_MAX_EXTENT, ERR_NOT_OPEN, ERR_OPEN, ERR_READ_ONLY, ERR_RECORD_LENGTH_ZERO, ERR_TRUNCATE, initialExtent, log, maximumExtent, nextOffset, WARN
am
NULL
Modifier and Type | Method and Description |
---|---|
void |
deleteResources()
Deletes the backing file(s) (if any).
|
void |
force(boolean metadata)
Force the data to stable storage.
|
File |
getFile()
Always returns
null . |
int |
getHeaderSize()
There is no header.
|
boolean |
isFullyBuffered()
True iff the store is fully buffered (all reads are against memory).
|
boolean |
isStable()
True iff backed by stable storage.
|
ByteBuffer |
readRootBlock(boolean rootBlock0)
Read the specified root block from the backing file.
|
void |
setNextOffset(long lastOffset)
Protocol support for HAWrite
|
void |
writeRootBlock(IRootBlockView rootBlock,
ForceEnum forceOnCommit)
Write the root block onto stable storage (ie, flush it through to disk).
|
close, getBufferView, getCounters, getExtent, getUserExtent, read, transferTo, truncate, write
abort, assertOpen, closeForWrites, commit, delete, destroy, getBufferMode, getInitialExtent, getMaximumExtent, getMaxRecordSize, getMetaBitsAddr, getMetaStartAddr, getMinimumExtension, getNextOffset, getResourceMetadata, getUUID, isDirty, isOpen, isReadOnly, overflow, requiresCommit, size, transferFromDiskTo, useChecksums
getAddressManager, getByteCount, getOffset, getOffsetBits, getPhysicalAddress, toAddr, toString
getInputStream, getOutputStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAddressManager, getOffsetBits
getByteCount, getOffset, getPhysicalAddress, toAddr, toString
getInputStream, getOutputStream
public void deleteResources()
IRawStore
public void force(boolean metadata)
IRawStore
metadata
- If true, then force both the file contents and the file
metadata to disk.public File getFile()
null
.public final boolean isStable()
IRawStore
public boolean isFullyBuffered()
IRawStore
Note: This does not guarantee that the OS will not swap the buffer onto disk.
public void writeRootBlock(IRootBlockView rootBlock, ForceEnum forceOnCommit)
IBufferStrategy
rootBlock
- The root block. Which root block is indicated by
IRootBlockView.isRootBlock0()
.public final int getHeaderSize()
public ByteBuffer readRootBlock(boolean rootBlock0)
IBufferStrategy
public void setNextOffset(long lastOffset)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.