com.nhncorp.neptune.tabletserver
Class TabletScanner
java.lang.Object
com.nhncorp.neptune.tabletserver.TabletScanner
public class TabletScanner
- extends java.lang.Object
|
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
static java.util.Random |
rand
|
| 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
rand
public static java.util.Random rand
TabletScanner
public TabletScanner(java.lang.String scannerId,
NConfiguration conf,
TabletInfo tabletInfo,
Row.Key startRowKey,
Row.Key endRowKey,
java.lang.String columnName,
MemorySSTableIF memorySSTable,
DiskSSTableIF diskSSTable,
CellFilter columnFilter,
int numOfVersion)
throws java.io.IOException
- Throws:
java.io.IOException
next
public ColumnValue[] next()
throws java.io.IOException
- 한번에 여러개의 결과를 반환한다.
이것은 클라이언트 모듈에서 cache로 저장되어 서버와의 접속 횟수를 줄여준다.
- Returns:
-
- Throws:
java.io.IOException
getScannerId
public java.lang.String getScannerId()
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
generateScannerId
public static java.lang.String generateScannerId(TabletInfo tabletInfo)