org.apache.hadoop.hbase.rest
Class RowSpec
java.lang.Object
org.apache.hadoop.hbase.rest.RowSpec
@InterfaceAudience.Private
public class RowSpec
- extends Object
Parses a path based row/column/timestamp specification into its component
elements.
Constructor Summary |
RowSpec(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)
|
RowSpec(String path)
|
DEFAULT_START_TIMESTAMP
public static final long DEFAULT_START_TIMESTAMP
- See Also:
- Constant Field Values
DEFAULT_END_TIMESTAMP
public static final long DEFAULT_END_TIMESTAMP
- See Also:
- Constant Field Values
RowSpec
public RowSpec(String path)
throws IllegalArgumentException
- 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)
isSingleRow
public boolean isSingleRow()
getMaxVersions
public int getMaxVersions()
setMaxVersions
public void setMaxVersions(int maxVersions)
getMaxValues
public int getMaxValues()
setMaxValues
public void setMaxValues(int maxValues)
hasColumns
public boolean hasColumns()
hasLabels
public boolean hasLabels()
getRow
public byte[] getRow()
getStartRow
public byte[] getStartRow()
hasEndRow
public boolean hasEndRow()
getEndRow
public byte[] getEndRow()
addColumn
public void addColumn(byte[] column)
getColumns
public byte[][] getColumns()
getLabels
public List<String> getLabels()
hasTimestamp
public boolean hasTimestamp()
getTimestamp
public long getTimestamp()
getStartTime
public long getStartTime()
setStartTime
public void setStartTime(long startTime)
getEndTime
public long getEndTime()
setEndTime
public void setEndTime(long endTime)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.