|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.storm.hbase.common.ColumnList
public class ColumnList
Represents a list of HBase columns.
There are two types of columns, standard and counter.
Standard columns have column family (required), qualifier (optional),
timestamp (optional), and a value (optional) values.
Counter columns have column family (required), qualifier (optional),
and an increment (optional, but recommended) values.
Inserts/Updates can be added via the addColumn()
and addCounter()
methods.
Nested Class Summary | |
---|---|
static class |
ColumnList.AbstractColumn
|
static class |
ColumnList.Column
|
static class |
ColumnList.Counter
|
Constructor Summary | |
---|---|
ColumnList()
|
Method Summary | |
---|---|
ColumnList |
addColumn(byte[] family,
byte[] qualifier,
byte[] value)
Add a standard HBase column |
ColumnList |
addColumn(byte[] family,
byte[] qualifier,
long ts,
byte[] value)
Add a standard HBase column. |
ColumnList |
addColumn(IColumn column)
Add a standard HBase column given an instance of a class that implements the IColumn interface. |
ColumnList |
addCounter(byte[] family,
byte[] qualifier,
long incr)
Add an HBase counter column. |
ColumnList |
addCounter(ICounter counter)
Add an HBase counter column given an instance of a class that implements the ICounter interface. |
List<ColumnList.Column> |
getColumns()
Get the list of column definitions. |
List<ColumnList.Counter> |
getCounters()
Get the list of counter definitions. |
boolean |
hasColumns()
Query to determine if we have column definitions. |
boolean |
hasCounters()
Query to determine if we have counter definitions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnList()
Method Detail |
---|
public ColumnList addColumn(byte[] family, byte[] qualifier, long ts, byte[] value)
family
- qualifier
- ts
- value
-
public ColumnList addColumn(byte[] family, byte[] qualifier, byte[] value)
family
- qualifier
- value
-
public ColumnList addColumn(IColumn column)
IColumn
interface.
column
-
public ColumnList addCounter(byte[] family, byte[] qualifier, long incr)
family
- qualifier
- incr
-
public ColumnList addCounter(ICounter counter)
ICounter
interface.
counter
-
public boolean hasColumns()
public boolean hasCounters()
public List<ColumnList.Column> getColumns()
public List<ColumnList.Counter> getCounters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |