com.nhncorp.neptune.tabletserver
Class ValueCollection
java.lang.Object
com.nhncorp.neptune.tabletserver.ValueCollection
- All Implemented Interfaces:
- java.util.Iterator<ColumnValue>
public class ValueCollection
- extends java.lang.Object
- implements java.util.Iterator<ColumnValue>
Cell.Key에 대응하는 값을 가지고 있다.
하나의 Cell.Key에는 여러 버전의 value가 존재하게 된다.
각각의 value는 timestamp를 가지고 있으며 timestamp로 desc 정렬되어 저장된다.
일반적인 조회 요청에는 가장 최근의 데이터를 반환하게 된다.
- Author:
- babokim
|
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
ValueCollection
public ValueCollection()
clear
public void clear()
setColumnRecords
public void setColumnRecords(java.util.SortedSet<ColumnValue> columnValues)
add
public void add(ColumnValue columnValue,
int numOfVersion)
get
public ColumnValue get()
get
public ColumnValue[] get(int numVersion)
getLast
public ColumnValue getLast()
write
public int write(java.io.DataOutputStream dataOut)
throws java.io.IOException
- Throws:
java.io.IOException
getByteSize
public int getByteSize()
throws java.io.IOException
- Throws:
java.io.IOException
copyMapFileColumnValue
public static void copyMapFileColumnValue(ColumnValue columnValue,
MapFileColumnValue mapFileColumnValue)
addAll
public void addAll(ValueCollection collection,
int numOfVersion)
getColumnRecords
public java.util.SortedSet<ColumnValue> getColumnRecords()
getValueSize
public int getValueSize()
print
public void print()
get
public java.util.List<ColumnValue> get(CellFilter cellFilter)
isDeleted
public boolean isDeleted()
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator<ColumnValue>
next
public ColumnValue next()
- Specified by:
next in interface java.util.Iterator<ColumnValue>
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator<ColumnValue>
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException