public class TransientBufferStrategy extends BasicBufferStrategy
BufferMode.Transientextent, userExtentbufferMode, 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, WARNamNULL| 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, writeabort, assertOpen, closeForWrites, commit, delete, destroy, getBufferMode, getInitialExtent, getMaximumExtent, getMaxRecordSize, getMetaBitsAddr, getMetaStartAddr, getMinimumExtension, getNextOffset, getResourceMetadata, getUUID, isDirty, isOpen, isReadOnly, overflow, requiresCommit, size, transferFromDiskTo, useChecksumsgetAddressManager, getByteCount, getOffset, getOffsetBits, getPhysicalAddress, toAddr, toStringgetInputStream, getOutputStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAddressManager, getOffsetBitsgetByteCount, getOffset, getPhysicalAddress, toAddr, toStringgetInputStream, getOutputStreampublic void deleteResources()
IRawStorepublic void force(boolean metadata)
IRawStoremetadata - If true, then force both the file contents and the file
metadata to disk.public File getFile()
null.public final boolean isStable()
IRawStorepublic boolean isFullyBuffered()
IRawStoreNote: This does not guarantee that the OS will not swap the buffer onto disk.
public void writeRootBlock(IRootBlockView rootBlock, ForceEnum forceOnCommit)
IBufferStrategyrootBlock - The root block. Which root block is indicated by
IRootBlockView.isRootBlock0().public final int getHeaderSize()
public ByteBuffer readRootBlock(boolean rootBlock0)
IBufferStrategypublic void setNextOffset(long lastOffset)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.