private static SinglePartitionPager makePager(ReadCommand command, ConsistencyLevel consistencyLevel, ClientState cState, boolean localQuery, PagingState state) { return command instanceof SliceFromReadCommand ? new SliceQueryPager((SliceFromReadCommand)command, consistencyLevel, cState, localQuery, state) : new NamesQueryPager((SliceByNamesReadCommand)command, consistencyLevel, cState, localQuery); }
private static QueryPager pager(ReadCommand command, ConsistencyLevel consistencyLevel, ClientState cState, boolean local, PagingState state) { if (command instanceof SliceByNamesReadCommand) return new NamesQueryPager((SliceByNamesReadCommand)command, consistencyLevel, cState, local); else return new SliceQueryPager((SliceFromReadCommand)command, consistencyLevel, cState, local, state); }