public class RecordingTransactionBase
extends org.apache.fluo.api.client.AbstractTransactionBase
implements org.apache.fluo.api.client.TransactionBase
TransactionBase
that logs all transactions operations (GET, SET, or
DELETE) in a TxLog
that can be used for exportsModifier and Type | Method and Description |
---|---|
void |
delete(org.apache.fluo.api.data.Bytes row,
org.apache.fluo.api.data.Column col) |
org.apache.fluo.api.data.Bytes |
get(org.apache.fluo.api.data.Bytes row,
org.apache.fluo.api.data.Column col)
Logs GETs for returned Row/Columns.
|
Map<org.apache.fluo.api.data.Column,org.apache.fluo.api.data.Bytes> |
get(org.apache.fluo.api.data.Bytes row,
Set<org.apache.fluo.api.data.Column> columns)
Logs GETs for returned Row/Columns.
|
Map<org.apache.fluo.api.data.Bytes,Map<org.apache.fluo.api.data.Column,org.apache.fluo.api.data.Bytes>> |
get(Collection<org.apache.fluo.api.data.Bytes> rows,
Set<org.apache.fluo.api.data.Column> columns)
Logs GETs for returned Row/Columns.
|
Map<org.apache.fluo.api.data.RowColumn,org.apache.fluo.api.data.Bytes> |
get(Collection<org.apache.fluo.api.data.RowColumn> rowColumns) |
long |
getStartTimestamp() |
TxLog |
getTxLog() |
org.apache.fluo.api.client.scanner.ScannerBuilder |
scanner()
Logs GETs for Row/Columns returned by iterators.
|
void |
set(org.apache.fluo.api.data.Bytes row,
org.apache.fluo.api.data.Column col,
org.apache.fluo.api.data.Bytes value) |
void |
setWeakNotification(org.apache.fluo.api.data.Bytes row,
org.apache.fluo.api.data.Column col) |
static RecordingTransactionBase |
wrap(org.apache.fluo.api.client.TransactionBase txb)
Creates a RecordingTransactionBase by wrapping an existing TransactionBase
|
static RecordingTransactionBase |
wrap(org.apache.fluo.api.client.TransactionBase txb,
Predicate<LogEntry> filter)
Creates a RecordingTransactionBase using the provided LogEntry filter function and existing
TransactionBase
|
delete, set, setWeakNotification
get, get, get, gets, gets, gets, gets, gets, gets, gets
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setWeakNotification(org.apache.fluo.api.data.Bytes row, org.apache.fluo.api.data.Column col)
setWeakNotification
in interface org.apache.fluo.api.client.TransactionBase
public void set(org.apache.fluo.api.data.Bytes row, org.apache.fluo.api.data.Column col, org.apache.fluo.api.data.Bytes value) throws org.apache.fluo.api.exceptions.AlreadySetException
set
in interface org.apache.fluo.api.client.TransactionBase
org.apache.fluo.api.exceptions.AlreadySetException
public void delete(org.apache.fluo.api.data.Bytes row, org.apache.fluo.api.data.Column col)
delete
in interface org.apache.fluo.api.client.TransactionBase
public org.apache.fluo.api.data.Bytes get(org.apache.fluo.api.data.Bytes row, org.apache.fluo.api.data.Column col)
get
in interface org.apache.fluo.api.client.SnapshotBase
public Map<org.apache.fluo.api.data.Column,org.apache.fluo.api.data.Bytes> get(org.apache.fluo.api.data.Bytes row, Set<org.apache.fluo.api.data.Column> columns)
get
in interface org.apache.fluo.api.client.SnapshotBase
public Map<org.apache.fluo.api.data.Bytes,Map<org.apache.fluo.api.data.Column,org.apache.fluo.api.data.Bytes>> get(Collection<org.apache.fluo.api.data.Bytes> rows, Set<org.apache.fluo.api.data.Column> columns)
get
in interface org.apache.fluo.api.client.SnapshotBase
public Map<org.apache.fluo.api.data.RowColumn,org.apache.fluo.api.data.Bytes> get(Collection<org.apache.fluo.api.data.RowColumn> rowColumns)
get
in interface org.apache.fluo.api.client.SnapshotBase
public org.apache.fluo.api.client.scanner.ScannerBuilder scanner()
scanner
in interface org.apache.fluo.api.client.SnapshotBase
public long getStartTimestamp()
getStartTimestamp
in interface org.apache.fluo.api.client.SnapshotBase
public TxLog getTxLog()
public static RecordingTransactionBase wrap(org.apache.fluo.api.client.TransactionBase txb)
public static RecordingTransactionBase wrap(org.apache.fluo.api.client.TransactionBase txb, Predicate<LogEntry> filter)
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.