public interface TransactionBase extends SnapshotBase
SnapshotBase
to include methods for writing to Fluo.AbstractTransactionBase
Modifier and Type | Method and Description |
---|---|
void |
delete(Bytes row,
Column col)
Deletes the value at the given row and
Column |
void |
delete(CharSequence row,
Column col)
Wrapper for
delete(Bytes, Column) that uses Strings. |
void |
set(Bytes row,
Column col,
Bytes value)
|
void |
set(CharSequence row,
Column col,
CharSequence value)
Wrapper for
set(Bytes, Column, Bytes) that uses Strings. |
void |
setWeakNotification(Bytes row,
Column col)
Sets a weak notification at the given row and
Column |
void |
setWeakNotification(CharSequence row,
Column col)
Wrapper for
setWeakNotification(Bytes, Column) that uses Strings. |
default SnapshotBase |
withReadLock()
Normally when a Fluo transaction reads data and does not write to it, it will not collide with
other transactions making concurrent writes.
|
void delete(CharSequence row, Column col)
delete(Bytes, Column)
that uses Strings. All String are encoded using
UTF-8.void set(Bytes row, Column col, Bytes value) throws AlreadySetException
AlreadySetException
void set(CharSequence row, Column col, CharSequence value) throws AlreadySetException
set(Bytes, Column, Bytes)
that uses Strings. All String are encoded using
UTF-8.AlreadySetException
void setWeakNotification(Bytes row, Column col)
Column
void setWeakNotification(CharSequence row, Column col)
setWeakNotification(Bytes, Column)
that uses Strings. All String are
encoded using UTF-8.default SnapshotBase withReadLock()
Scanning with read locks is not supported. Attempting to call withReadLock().scanner()
will throw an UnsupportedOperationException
. This is because there are an infinite
amount of keys within a range and read locks can not be obtained on them all.
A transaction that only acquires read locks will do nothing at commit time. In this case no read locks are actually written and no collisions will ever occur.
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.