com.nhncorp.neptune.client
Class CellFilter

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

public class CellFilter
extends java.lang.Object
implements NWritable

Scan, get을 이용하여 데이터를 조회하는 경우 컬럼에 대한 필터 조건을 설정하기 위해 사용된다. numOfValuse는 하나의 row에 여러개의 Cell.Key가 있는 경우 TopN개를 가져오는데 사용 numOfVersions는 하나의 Row, Cell.Key에 여러 버전의 데이터가 있는 TopN개의 버전만 가져오는데 사용 TODO: Operator에 대한 정의 필요

Author:
김형준

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)
          하나의 Row에 여러개의 Cell.Key 값이 있는 경우 Top N의 Cell.Key에 해당하는 Cell을 조회하는 경우
 void setNumOfVersions(int numOfVersions)
          하나의 Cell.Key에 여러 버전이 있는 경우 Top N만 조회할 경우 설정
 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: 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 NWritable
Throws:
java.io.IOException

write

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

Specified by:
write in interface 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)
하나의 Cell.Key에 여러 버전이 있는 경우 Top N만 조회할 경우 설정

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)
하나의 Row에 여러개의 Cell.Key 값이 있는 경우 Top N의 Cell.Key에 해당하는 Cell을 조회하는 경우

Parameters:
numOfValues -

setColumnName

public void setColumnName(java.lang.String columnName)