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 SummaryFieldsModifier and TypeFieldDescriptionprivate TreeSet<byte[]>static final longstatic final longprivate byte[]private longprivate intprivate intprivate byte[]private long
- 
Constructor SummaryConstructorsConstructorDescriptionRowSpec(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 SummaryModifier and TypeMethodDescriptionvoidaddColumn(byte[] column) byte[][]byte[]longintintbyte[]getRow()byte[]longlongbooleanbooleanbooleanbooleanbooleanprivate intparseColumns(String path, int i) private intparseQueryParams(String path, int i) private intparseRowKeys(String path, int i) private intparseTimestamp(String path, int i) voidsetEndTime(long endTime) voidsetMaxValues(int maxValues) voidsetMaxVersions(int maxVersions) voidsetStartTime(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
 
- 
RowSpecpublic RowSpec(byte[] startRow, byte[] endRow, byte[][] columns, long startTime, long endTime, int maxVersions) 
- 
RowSpecpublic RowSpec(byte[] startRow, byte[] endRow, Collection<byte[]> columns, long startTime, long endTime, int maxVersions, Collection<String> labels) 
- 
RowSpecpublic 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
 
-