Package org.apache.fluo.api.data
Class RowColumn
- java.lang.Object
-
- org.apache.fluo.api.data.RowColumn
-
- All Implemented Interfaces:
Serializable
,Comparable<RowColumn>
public final class RowColumn extends Object implements Comparable<RowColumn>, Serializable
Represents all or subset of a Fluo row andColumn
. RowColumn is similar to an Accumulo Key. RowColumn is immutable after it is created.- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RowColumn()
Constructs a RowColumn with row set to Bytes.EMPTY and column set to Column.EMPTYRowColumn(CharSequence row)
Constructs a RowColumn with only a row.RowColumn(CharSequence row, Column col)
Constructs a RowColumnRowColumn(Bytes row)
Constructs a RowColumn with only a row.RowColumn(Bytes row, Column col)
Constructs a RowColumn
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(RowColumn other)
boolean
equals(Object o)
RowColumn
following()
Returns a RowColumn following the current oneColumn
getColumn()
Retrieves Column in RowColumnBytes
getRow()
Retrieves Row in RowColumnString
getsRow()
Retrieves Row in RowColumn as a String using UTF-8 encoding.int
hashCode()
String
toString()
-
-
-
Field Detail
-
EMPTY
public static final RowColumn EMPTY
-
-
Constructor Detail
-
RowColumn
public RowColumn()
Constructs a RowColumn with row set to Bytes.EMPTY and column set to Column.EMPTY
-
RowColumn
public RowColumn(Bytes row)
Constructs a RowColumn with only a row. Column will be set to Column.EMPTY- Parameters:
row
- Bytes Row
-
RowColumn
public RowColumn(CharSequence row)
Constructs a RowColumn with only a row. Column will be set to Column.EMPTY- Parameters:
row
- (will be UTF-8 encoded)
-
RowColumn
public RowColumn(Bytes row, Column col)
Constructs a RowColumn- Parameters:
row
- Bytes Rowcol
- Column
-
RowColumn
public RowColumn(CharSequence row, Column col)
Constructs a RowColumn- Parameters:
row
- Row String (will be UTF-8 encoded)col
- Column
-
-
Method Detail
-
getRow
public Bytes getRow()
Retrieves Row in RowColumn- Returns:
- Row
-
getsRow
public String getsRow()
Retrieves Row in RowColumn as a String using UTF-8 encoding.- Returns:
- Row
-
getColumn
public Column getColumn()
Retrieves Column in RowColumn- Returns:
- Column
-
following
public RowColumn following()
Returns a RowColumn following the current one- Returns:
- RowColumn following this one
-
compareTo
public int compareTo(RowColumn other)
- Specified by:
compareTo
in interfaceComparable<RowColumn>
-
-