Examples of QueryEntry


Examples of com.hazelcast.query.impl.QueryEntry

                Object entryValue = entry.getValue().value;
                final Object objectValue = entryValue instanceof Data
                        ? mapServiceContext.toObject(entryValue) : entryValue;
                Data dataKey = mapServiceContext.toData(objectKey);
                final SerializationService serializationService = getNodeEngine().getSerializationService();
                final QueryEntry queryEntry = new QueryEntry(serializationService, dataKey, objectKey, objectValue);
                if (predicate.apply(queryEntry)) {
                    valueSet.add(entryValue);
                }
            }
        }
View Full Code Here

Examples of com.hazelcast.query.impl.QueryEntry

            Data key = record.getKey();
            Object value = getValueOrCachedValue(record);
            if (value == null) {
                continue;
            }
            QueryEntry queryEntry = new QueryEntry(serializationService, key, key, value);
            if (predicate.apply(queryEntry)) {
                if (pagingPredicate != null) {
                    Map.Entry anchor = pagingPredicate.getAnchor();
                    if (anchor != null
                            && SortingUtil.compare(pagingPredicate.getComparator(),
View Full Code Here

Examples of com.hazelcast.query.impl.QueryEntry

    protected void saveIndex(Record record) {
        Data dataKey = record.getKey();
        final IndexService indexService = mapContainer.getIndexService();
        if (indexService.hasIndex()) {
            SerializationService ss = mapServiceContext.getNodeEngine().getSerializationService();
            QueryableEntry queryableEntry = new QueryEntry(ss, dataKey, dataKey, record.getValue());
            indexService.saveEntryIndex(queryableEntry);
        }
    }
View Full Code Here

Examples of com.hazelcast.query.impl.QueryEntry

        } else {
            testValue = serializationService.toObject(dataValue);
        }
        Object key = serializationService.toObject(dataKey);
        QueryEventFilter queryEventFilter = (QueryEventFilter) filter;
        QueryEntry entry = new QueryEntry(serializationService, dataKey, key, testValue);
        if (queryEventFilter.eval(entry)) {
            if (queryEventFilter.isIncludeValue()) {
                return Result.VALUE_INCLUDED;
            } else {
                return Result.NO_VALUE_INCLUDED;
View Full Code Here

Examples of org.apache.oozie.service.JPAService.QueryEntry

                            (SLASummaryQuery) entry.getQueryName(), (SLASummaryBean) entry.getBean(), em);
                }
                else {
                    throw new JPAExecutorException(ErrorCode.E0603, "BatchQueryExecutor faield to construct a query");
                }
                queryList.add(new QueryEntry(entry.getQueryName(), query));
            }
        }
        jpaService.executeBatchInsertUpdateDelete(insertList, queryList, deleteList, em);
    }
View Full Code Here

Examples of org.cyclop.model.QueryEntry

      LOG.debug("Executing {} with offset {}", query, queryIdx);
      session.execute(query.part);

      long runTime = System.currentTimeMillis() - startTime;
      if (iconfig.isUpdateHistory()) {
        QueryEntry entry = new QueryEntry(query, runTime);
        history.add(entry);
      }
      resultWriter.success(query, runTime);
      status.success.getAndIncrement();
    } catch (DriverException e) {
View Full Code Here

Examples of org.cyclop.model.QueryEntry

    historyTable = new PageableListView<QueryEntry>("historyRow", model, 1) {

      @Override
      protected void populateItem(ListItem<QueryEntry> item) {
        QueryEntry entry = item.getModel().getObject();

        populateExecutedOn(item, entry);
        populateRuntime(item, entry);
        populateQuery(item, entry);
      }
View Full Code Here

Examples of org.cyclop.model.QueryEntry

    return result;
  }

  private void updateHistory(CqlQuery query, long startTime) {
    long runTime = System.currentTimeMillis() - startTime;
    QueryEntry entry = new QueryEntry(query, runTime);
    historyService.addAndStore(entry);
  }
View Full Code Here

Examples of org.cyclop.model.QueryEntry

    try (QueryHistory.HistoryIterator iterator = hist.iterator()) {
      assertFalse(iterator.hasNext());
    }

    CqlQuery query = new CqlQuery(CqlQueryType.SELECT, "select * from MyTable");
    QueryEntry histEntry = new QueryEntry(query, 234);
    assertFalse(hist.contains(histEntry));
    try {
      hist.iterator().next();
      fail();
    } catch (NoSuchElementException e) {
View Full Code Here

Examples of org.cyclop.model.QueryEntry

    QueryFavourites hist = new QueryFavourites();
    assertEquals(0, hist.size());
    assertFalse(hist.copyAsSortedSet().iterator().hasNext());

    CqlQuery query = new CqlQuery(CqlQueryType.SELECT, "select * from MyTable");
    QueryEntry histEntry = new QueryEntry(query, 6456);
    assertFalse(hist.contains(histEntry));
    try {
      hist.copyAsSortedSet().iterator().next();
      fail();
    } catch (NoSuchElementException e) {
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.