org.apache.hadoop.hbase.rest
Class RowSpec

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.RowSpec

public class RowSpec
extends Object

Parses a path based row/column/timestamp specification into its component elements.


Field Summary
static long DEFAULT_END_TIMESTAMP
           
static long DEFAULT_START_TIMESTAMP
           
 
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(String path)
           
 
Method Summary
 void addColumn(byte[] column)
           
 byte[][] getColumns()
           
 byte[] getEndRow()
           
 long getEndTime()
           
 int getMaxValues()
           
 int getMaxVersions()
           
 byte[] getRow()
           
 byte[] getStartRow()
           
 long getStartTime()
           
 long getTimestamp()
           
 boolean hasColumns()
           
 boolean hasEndRow()
           
 boolean hasTimestamp()
           
 boolean isSingleRow()
           
 void setEndTime(long endTime)
           
 void setMaxValues(int maxValues)
           
 void setMaxVersions(int maxVersions)
           
 void setStartTime(long startTime)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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()

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()

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 © 2011 The Apache Software Foundation. All Rights Reserved.