Examples of IndexComponentsOnlyQuery


Examples of com.google.appengine.api.datastore.CompositeIndexManager.IndexComponentsOnlyQuery

  public Set<Index> compositeIndexesForQuery(Query query) {
    List<DatastoreV3Pb.Query> pbQueries = convertQueryToPbs(query,
        FetchOptions.Builder.withDefaults());
    Set<Index> resultSet = new HashSet<Index>();
    for (DatastoreV3Pb.Query queryProto : pbQueries) {
      IndexComponentsOnlyQuery indexQuery = new IndexComponentsOnlyQuery(queryProto);

      OnestoreEntity.Index index =
          factory.getCompositeIndexManager().compositeIndexForQuery(indexQuery);
      if (index != null) {
        resultSet.add(IndexTranslator.convertFromPb(index));
View Full Code Here

Examples of com.google.appengine.api.datastore.CompositeIndexManager.IndexComponentsOnlyQuery

      indexPbs.add(IndexTranslator.convertToPb(index));
    }

    Set<Index> resultSet = new HashSet<Index>();
    for (DatastoreV3Pb.Query queryProto : pbQueries) {
      IndexComponentsOnlyQuery indexQuery = new IndexComponentsOnlyQuery(queryProto);

      OnestoreEntity.Index index =
          factory.getCompositeIndexManager().minimumCompositeIndexForQuery(indexQuery, indexPbs);
      if (index != null) {
        resultSet.add(IndexTranslator.convertFromPb(index));
View Full Code Here

Examples of com.google.appengine.api.datastore.CompositeIndexManager.IndexComponentsOnlyQuery

        fetchOptions, txn, query, result, apiConfig);
  }

  private void addMissingIndexData(
      DatastoreV3Pb.Query queryProto, DatastoreNeedIndexException e) {
    IndexComponentsOnlyQuery indexQuery = new IndexComponentsOnlyQuery(queryProto);
    CompositeIndexManager mgr = new CompositeIndexManager();
    OnestoreEntity.Index index = mgr.compositeIndexForQuery(indexQuery);
    if (index != null) {
      String xml = mgr.generateXmlForIndex(index, IndexSource.manual);
      e.setMissingIndexDefinitionXml(xml);
View Full Code Here

Examples of com.google.appengine.api.datastore.CompositeIndexManager.IndexComponentsOnlyQuery

  }

  public Index compositeIndexForQuery(Query query) {
    DatastorePb.Query queryProto =
        QueryTranslator.convertToPb(query, FetchOptions.Builder.withDefaults());
    IndexComponentsOnlyQuery indexQuery = new IndexComponentsOnlyQuery(queryProto);
    OnestoreEntity.Index index =
        factory.getCompositeIndexManager().compositeIndexForQuery(indexQuery);
    return index == null ? null : IndexTranslator.convertFromPb(index);
  }
View Full Code Here

Examples of com.google.appengine.api.datastore.CompositeIndexManager.IndexComponentsOnlyQuery

  }

  public Index minimumCompositeIndexForQuery(Query query, Collection<Index> indexes) {
    DatastorePb.Query queryProto =
        QueryTranslator.convertToPb(query, FetchOptions.Builder.withDefaults());
    IndexComponentsOnlyQuery indexQuery = new IndexComponentsOnlyQuery(queryProto);
    Collection<OnestoreEntity.Index> temp = ImmutableList.copyOf(Iterables.transform(indexes,
        new Function<Index, OnestoreEntity.Index>() {
          @Override public OnestoreEntity.Index apply(Index index) {
            return IndexTranslator.convertToPb(index);
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.