private Set < String > searchForIds ( Context context , TermQuery query , ConsistencyLevel readConsistency ) { Set < String > ids = Sets . newTreeSet ( ) ; BoundStatement bindStatement = m_searchStatement . bind ( ) ; bindStatement . setString ( Schema . C_TERMS_CONTEXT , context . getId ( ) ) ; bindStatement . setString ( Schema . C_TERMS_FIELD , query . getTerm ( ) . getField ( Constants . DEFAULT_TERM_FIELD ) ) ; bindStatement . setString ( Schema . C_TERMS_VALUE , query . getTerm ( ) . getValue ( ) ) ; bindStatement . setConsistencyLevel ( readConsistency ) ; for ( Row row : m_session . execute ( bindStatement ) ) { ids . add ( row . getString ( Constants . Schema . C_TERMS_RESOURCE ) ) ; } return ids ; }
Returns the set of resource ids that match the given term query .