com.nhncorp.neptune.client
Class CellFilter

java.lang.Object
  extended by com.nhncorp.neptune.client.CellFilter
All Implemented Interfaces:
com.nhncorp.neptune.common.io.NWritable

public class CellFilter
extends java.lang.Object
implements com.nhncorp.neptune.common.io.NWritable

RowFilter and CellFilter are normally used to get or scan for complex search condition

See Also:
RowFilter

Constructor Summary
CellFilter()
           
CellFilter(java.lang.String columnName)
           
CellFilter(java.lang.String columnName, Cell.Key cellKey)
           
 
Method Summary
 Cell.Key getCellKey()
           
 java.lang.String getColumnName()
           
 long getEndTimestamp()
           
 int getNumOfValues()
           
 int getNumOfVersions()
           
 long getStartTimestamp()
           
 boolean hasTimestampFilter()
           
 void readFields(java.io.DataInput in)
          Reads the fields of this object from in.
 void setColumn(java.lang.String columnName, Cell.Key cellKey)
           
 void setColumnName(java.lang.String columnName)
           
 void setEndTimestamp(long endTimestamp)
           
 void setNumOfValues(int numOfValues)
          Set number of Cell in a single query
This variable is used for fetching TopN datas in a Row.
 void setNumOfVersions(int numOfVersions)
          Set number of version in a Cell
 void setStartTimestamp(long startTimestamp)
           
 void write(java.io.DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellFilter

public CellFilter()

CellFilter

public CellFilter(java.lang.String columnName)

CellFilter

public CellFilter(java.lang.String columnName,
                  Cell.Key cellKey)
Method Detail

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Description copied from interface: com.nhncorp.neptune.common.io.NWritable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface com.nhncorp.neptune.common.io.NWritable
Throws:
java.io.IOException

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Description copied from interface: com.nhncorp.neptune.common.io.NWritable
Writes the fields of this object to out.

Specified by:
write in interface com.nhncorp.neptune.common.io.NWritable
Throws:
java.io.IOException

getCellKey

public Cell.Key getCellKey()

setColumn

public void setColumn(java.lang.String columnName,
                      Cell.Key cellKey)

getColumnName

public java.lang.String getColumnName()

getEndTimestamp

public long getEndTimestamp()

setEndTimestamp

public void setEndTimestamp(long endTimestamp)

getNumOfVersions

public int getNumOfVersions()

setNumOfVersions

public void setNumOfVersions(int numOfVersions)
Set number of version in a Cell

Parameters:
numOfVersions -

getStartTimestamp

public long getStartTimestamp()

setStartTimestamp

public void setStartTimestamp(long startTimestamp)

hasTimestampFilter

public boolean hasTimestampFilter()

getNumOfValues

public int getNumOfValues()

setNumOfValues

public void setNumOfValues(int numOfValues)
Set number of Cell in a single query
This variable is used for fetching TopN datas in a Row.

Parameters:
numOfValues -

setColumnName

public void setColumnName(java.lang.String columnName)