public final class RowColumn extends Object implements Comparable<RowColumn>, Serializable
Column
. RowColumn is similar to an Accumulo
Key. RowColumn is immutable after it is created.Constructor and Description |
---|
RowColumn()
Constructs a RowColumn with row set to Bytes.EMPTY and column set to Column.EMPTY
|
RowColumn(Bytes row)
Constructs a RowColumn with only a row.
|
RowColumn(Bytes row,
Column col)
Constructs a RowColumn
|
RowColumn(CharSequence row)
Constructs a RowColumn with only a row.
|
RowColumn(CharSequence row,
Column col)
Constructs a RowColumn
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RowColumn other) |
boolean |
equals(Object o) |
RowColumn |
following()
Returns a RowColumn following the current one
|
Column |
getColumn()
Retrieves Column in RowColumn
|
Bytes |
getRow()
Retrieves Row in RowColumn
|
String |
getsRow()
Retrieves Row in RowColumn as a String using UTF-8 encoding.
|
int |
hashCode() |
String |
toString() |
public static RowColumn EMPTY
public RowColumn()
public RowColumn(Bytes row)
row
- Bytes Rowpublic RowColumn(CharSequence row)
row
- (will be UTF-8 encoded)public RowColumn(Bytes row, Column col)
row
- Bytes Rowcol
- Columnpublic RowColumn(CharSequence row, Column col)
row
- Row String (will be UTF-8 encoded)col
- Columnpublic Bytes getRow()
public String getsRow()
public Column getColumn()
public RowColumn following()
public int compareTo(RowColumn other)
compareTo
in interface Comparable<RowColumn>
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.