com.nhncorp.neptune.client.procedure
Class Selector
java.lang.Object
com.nhncorp.neptune.client.procedure.Selector
public class Selector
- extends java.lang.Object
|
Constructor Summary |
Selector(java.lang.String sql)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Selector
public Selector(java.lang.String sql)
throws java.io.IOException
- Throws:
java.io.IOException
querySingleRow
public Row querySingleRow()
throws java.io.IOException
- query에 RowKey가 있는 경우에는 scanner를 이용하지 않고 get을 이용하여 조회한다.
- Returns:
-
- Throws:
java.io.IOException
getColumns
public java.lang.String[] getColumns()
getColumnIndex
public int getColumnIndex(java.lang.String columnName)
getScanner
public TableScanner getScanner()
throws java.io.IOException
- Throws:
java.io.IOException
select
public Row select()
throws java.io.IOException
- Throws:
java.io.IOException