Package org.apache.hadoop.hbase.rest
Class RowSpec
java.lang.Object
org.apache.hadoop.hbase.rest.RowSpec
Parses a path based row/column/timestamp specification into its component elements.
-
Field Summary
Modifier and TypeFieldDescriptionprivate TreeSet<byte[]>
static final long
static final long
private byte[]
private long
private int
private int
private byte[]
private long
-
Constructor Summary
ConstructorDescriptionRowSpec
(byte[] startRow, byte[] endRow, byte[][] columns, long startTime, long endTime, int maxVersions) RowSpec
(byte[] startRow, byte[] endRow, Collection<byte[]> columns, long startTime, long endTime, int maxVersions) RowSpec
(byte[] startRow, byte[] endRow, Collection<byte[]> columns, long startTime, long endTime, int maxVersions, Collection<String> labels) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(byte[] column) byte[][]
byte[]
long
int
int
byte[]
getRow()
byte[]
long
long
boolean
boolean
boolean
boolean
boolean
private int
parseColumns
(String path, int i) private int
parseQueryParams
(String path, int i) private int
parseRowKeys
(String path, int i) private int
parseTimestamp
(String path, int i) void
setEndTime
(long endTime) void
setMaxValues
(int maxValues) void
setMaxVersions
(int maxVersions) void
setStartTime
(long startTime) toString()
-
Field Details
-
DEFAULT_START_TIMESTAMP
- See Also:
-
DEFAULT_END_TIMESTAMP
- See Also:
-
row
-
endRow
-
columns
-
labels
-
startTime
-
endTime
-
maxVersions
-
maxValues
-
-
Constructor Details
-
RowSpec
- Throws:
IllegalArgumentException
-
RowSpec
- Throws:
IllegalArgumentException
-
RowSpec
public RowSpec(byte[] startRow, byte[] endRow, byte[][] columns, long startTime, long endTime, int maxVersions) -
RowSpec
public RowSpec(byte[] startRow, byte[] endRow, Collection<byte[]> columns, long startTime, long endTime, int maxVersions, Collection<String> labels) -
RowSpec
public RowSpec(byte[] startRow, byte[] endRow, Collection<byte[]> columns, long startTime, long endTime, int maxVersions)
-
-
Method Details
-
parseRowKeys
- Throws:
IllegalArgumentException
-
parseColumns
- Throws:
IllegalArgumentException
-
parseTimestamp
- Throws:
IllegalArgumentException
-
parseQueryParams
-
isSingleRow
-
getMaxVersions
-
setMaxVersions
-
getMaxValues
-
setMaxValues
-
hasColumns
-
hasLabels
-
getRow
-
getStartRow
-
hasEndRow
-
getEndRow
-
addColumn
-
getColumns
-
getLabels
-
hasTimestamp
-
getTimestamp
-
getStartTime
-
setStartTime
-
getEndTime
-
setEndTime
-
toString
-