private CompletableFuture < QueryResponse > query ( QueryEntry entry ) { Query . ConsistencyLevel consistency = entry . getQuery ( ) . consistency ( ) ; if ( consistency == null ) return queryLinearizable ( entry ) ; switch ( consistency ) { case SEQUENTIAL : return queryLocal ( entry ) ; case LINEARIZABLE_LEASE : return queryBoundedLinearizable ( entry ) ; case LINEARIZABLE : return queryLinearizable ( entry ) ; default : throw new IllegalStateException ( "unknown consistency level" ) ; } }
Applies the given query entry to the state machine according to the query s consistency level .