public static StaticBuffer get ( KeyColumnValueStore store , StaticBuffer key , StaticBuffer column , StoreTransaction txh ) throws BackendException { KeySliceQuery query = new KeySliceQuery ( key , column , BufferUtil . nextBiggerBuffer ( column ) ) . setLimit ( 2 ) ; List < Entry > result = store . getSlice ( query , txh ) ; if ( result . size ( ) > 1 ) log . warn ( "GET query returned more than 1 result: store {} | key {} | column {}" , new Object [ ] { store . getName ( ) , key , column } ) ; if ( result . isEmpty ( ) ) return null ; else return result . get ( 0 ) . getValueAs ( StaticBuffer . STATIC_FACTORY ) ; }
Retrieves the value for the specified column and key under the given transaction from the store if such exists otherwise returns NULL