com.nhncorp.neptune.client.procedure
Class Selector

java.lang.Object
  extended by com.nhncorp.neptune.client.procedure.Selector

public class Selector
extends java.lang.Object


Constructor Summary
Selector(java.lang.String sql)
           
 
Method Summary
 int getColumnIndex(java.lang.String columnName)
           
 java.lang.String[] getColumns()
           
 TableScanner getScanner()
           
 Row querySingleRow()
          query에 RowKey가 있는 경우에는 scanner를 이용하지 않고 get을 이용하여 조회한다.
 Row select()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Selector

public Selector(java.lang.String sql)
         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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