Package org.apache.fluo.api.client
Class AbstractSnapshotBase
- java.lang.Object
-
- org.apache.fluo.api.client.AbstractSnapshotBase
-
- All Implemented Interfaces:
SnapshotBase
- Direct Known Subclasses:
AbstractTransactionBase
public abstract class AbstractSnapshotBase extends Object implements SnapshotBase
This class provides default implementations for many of the classes in SnapshotBase. It exists to make implementing SnapshotBase easier.
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractSnapshotBase()
protected
AbstractSnapshotBase(AbstractSnapshotBase other)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.fluo.api.client.SnapshotBase
get, get, get, get, getAsync, getAsync, getsAsync, getsAsync, getScanTimeAuthorizations, getStartTimestamp, scanner, setScanTimeAuthorizations
-
-
-
-
Constructor Detail
-
AbstractSnapshotBase
public AbstractSnapshotBase()
-
AbstractSnapshotBase
protected AbstractSnapshotBase(AbstractSnapshotBase other)
- Since:
- 1.2.0
-
-
Method Detail
-
get
public Bytes get(Bytes row, Column column, Bytes defaultValue)
Description copied from interface:SnapshotBase
Retrieves the value (inBytes
) stored at a given row andColumn
. Returns the passed in defaultValue if does not exist.- Specified by:
get
in interfaceSnapshotBase
defaultValue
- this will be returned if row+columns does not exists
-
get
public Map<Column,Bytes> get(Bytes row, Column... columns)
Description copied from interface:SnapshotBase
Given a row and list ofColumn
s, retrieves a map that contains the values at thoseColumn
s. Only columns that exist will be returned in map.- Specified by:
get
in interfaceSnapshotBase
-
get
public Map<Bytes,Map<Column,Bytes>> get(Collection<Bytes> rows, Column... columns)
Description copied from interface:SnapshotBase
Given a collection of rows and list ofColumn
s, retrieves a map that contains the values at those rows andColumn
s. Only rows and columns that exists will be returned in map.- Specified by:
get
in interfaceSnapshotBase
-
gets
public Map<RowColumn,String> gets(Collection<RowColumn> rowColumns)
Description copied from interface:SnapshotBase
Wrapper forSnapshotBase.get(Collection)
that uses Strings. All strings are encoded and decoded using UTF-8.- Specified by:
gets
in interfaceSnapshotBase
-
gets
public Map<String,Map<Column,String>> gets(Collection<? extends CharSequence> rows, Set<Column> columns)
Description copied from interface:SnapshotBase
Wrapper forSnapshotBase.get(Collection, Set)
that uses Strings. All strings are encoded and decoded using UTF-8.- Specified by:
gets
in interfaceSnapshotBase
-
gets
public Map<String,Map<Column,String>> gets(Collection<? extends CharSequence> rows, Column... columns)
Description copied from interface:SnapshotBase
Wrapper forSnapshotBase.get(Collection, Set)
that uses Strings. All strings are encoded and decoded using UTF-8.- Specified by:
gets
in interfaceSnapshotBase
-
gets
public String gets(CharSequence row, Column column)
Description copied from interface:SnapshotBase
Wrapper forSnapshotBase.get(Bytes, Column)
that uses Strings. All strings are encoded and decoded using UTF-8.- Specified by:
gets
in interfaceSnapshotBase
-
gets
public String gets(CharSequence row, Column column, String defaultValue)
Description copied from interface:SnapshotBase
Wrapper forSnapshotBase.get(Bytes, Column, Bytes)
that uses Strings. All strings are encoded and decoded using UTF-8.- Specified by:
gets
in interfaceSnapshotBase
-
gets
public Map<Column,String> gets(CharSequence row, Set<Column> columns)
Description copied from interface:SnapshotBase
Wrapper forSnapshotBase.get(Bytes, Set)
that uses Strings. All strings are encoded and decoded using UTF-8.- Specified by:
gets
in interfaceSnapshotBase
-
gets
public Map<Column,String> gets(CharSequence row, Column... columns)
Description copied from interface:SnapshotBase
Wrapper forSnapshotBase.get(Bytes, Set)
that uses Strings. All strings are encoded and decoded using UTF-8.- Specified by:
gets
in interfaceSnapshotBase
-
-