code: @Override
      public long getLastSequenceIndexed() {
          String sql = "SELECT lastSequence FROM views WHERE name=?";
          String[] args = {name};
          Cursor cursor = null;
          long result = -1;
          try {
              cursor = store.getStorageEngine().rawQuery(sql, args);
              if (cursor.moveToNext()) {
                  result = cursor.getLong(0);
              }
          } catch (Exception e) {
              Log.e(Log.TAG_VIEW, "Error getting last sequence indexed", e);
          } finally {
              if (cursor != null) {
                  cursor.close();
              }
          }
          return result;
      }
docs: The last sequence number that has been indexed.