def __init__(self, compiler, fields):
        super(GAEQuery, self).__init__(compiler, fields)
        self.inequality_field = None
        self.included_pks = None
        self.ancestor_key = None
        self.excluded_pks = ()
        self.has_negated_exact_filter = False
        self.ordering = []
        self.db_table = self.query.get_meta().db_table
        self.pks_only = (len(fields) == 1 and fields[0].primary_key)
        start_cursor = getattr(self.query, '_gae_start_cursor', None)
        end_cursor = getattr(self.query, '_gae_end_cursor', None)
        self.gae_query = [Query(self.db_table, keys_only=self.pks_only,
                                cursor=start_cursor, end_cursor=end_cursor)]