|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.bfs.AtomicBlockWriteProc
public class AtomicBlockWriteProc
Atomic write of a single block for a file version.
| Field Summary | |
|---|---|
static boolean |
DEBUG
True iff the log level is DEBUG or less. |
static boolean |
INFO
True iff the log level is INFO or less. |
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
AtomicBlockWriteProc(BigdataFileSystem repo,
String id,
int version,
long block,
byte[] b,
int off,
int len)
|
|
| Method Summary | |
|---|---|
Object |
apply(IIndex ndx)
This procedure runs on the unisolated index. |
boolean |
isReadOnly()
Return true iff the procedure asserts that it will not
write on the index. |
void |
readExternal(ObjectInput in)
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static transient org.apache.log4j.Logger log
public static final transient boolean INFO
log level is INFO or less.
public static final transient boolean DEBUG
log level is DEBUG or less.
| Constructor Detail |
|---|
public AtomicBlockWriteProc(BigdataFileSystem repo,
String id,
int version,
long block,
byte[] b,
int off,
int len)
id - The file identifier.version - The file version.block - The block identifier.b - The buffer containing the data to be written.off - The offset in the buffer of the first byte to be written.len - The #of bytes to be written.| Method Detail |
|---|
public final boolean isReadOnly()
IIndexProceduretrue iff the procedure asserts that it will not
write on the index. When true, the procedure may be run
against a view of the index that is read-only or which allows concurrent
processes to read on the same index object. When false the
procedure will be run against a mutable view of the index (assuming that
the procedure is executed in a context that has access to a mutable index
view).
isReadOnly in interface IIndexProcedurepublic Object apply(IIndex ndx)
Journal and the index is added/updated
using the given file, version and block and the address of the
block's data on the Journal.
apply in interface IIndexProcedurendx - The index.
Boolean whose value is true iff the
block was overwritten.
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||