Tabnine Logo
ViewIndex.setupQueryParameters
Code IndexAdd Tabnine to your IDE (free)

How to use
setupQueryParameters
method
in
org.h2.index.ViewIndex

Best Java code snippets using org.h2.index.ViewIndex.setupQueryParameters (Showing top 12 results out of 315)

origin: com.h2database/h2

private Cursor find(Session session, SearchRow first, SearchRow last,
    SearchRow intersection) {
  if (recursive) {
    return findRecursive(first, last);
  }
  setupQueryParameters(session, first, last, intersection);
  ResultInterface result = query.query(0);
  return new ViewCursor(this, result, first, last);
}
origin: com.h2database/h2

@Override
protected Cursor run() throws Exception {
  viewIndex.setupQueryParameters(viewIndex.getSession(), first, last, null);
  ArrayList<JoinBatch> joinBatches = batchUnion.joinBatches;
  for (int i = 0, size = joinBatches.size(); i < size; i++) {
    assert topFutureCursors[i] != null;
    joinBatches.get(i).viewTopFutureCursor = topFutureCursors[i];
  }
  ResultInterface localResult;
  boolean lazy = false;
  try {
    localResult = viewIndex.getQuery().query(0);
    lazy = localResult.isLazy();
  } finally {
    if (!lazy) {
      resetViewTopFutureCursorAfterQuery();
    }
  }
  return newCursor(localResult);
}
origin: com.h2database/h2

@Override
public final boolean addSearchRows(SearchRow first, SearchRow last) {
  resetAfterFind();
  viewIndex.setupQueryParameters(viewIndex.getSession(), first, last, null);
  R r;
  if (resultSize < result.size()) {
    // get reused runner
    r = queryRunner(resultSize);
  } else {
    // create new runner
    result.add(r = newQueryRunner());
  }
  r.first = first;
  r.last = last;
  if (!collectSearchRows(r)) {
    r.clear();
    return false;
  }
  resultSize++;
  return true;
}
origin: com.h2database/h2

@Override
protected Cursor run() throws Exception {
  if (topFutureCursor == null) {
    // if the top cursor is empty then the whole query will produce
    // empty result
    return EMPTY_CURSOR;
  }
  viewIndex.setupQueryParameters(viewIndex.getSession(), first, last, null);
  JoinBatch.this.viewTopFutureCursor = topFutureCursor;
  ResultInterface localResult;
  boolean lazy = false;
  try {
    localResult = viewIndex.getQuery().query(0);
    lazy = localResult.isLazy();
  } finally {
    if (!lazy) {
      resetViewTopFutureCursorAfterQuery();
    }
  }
  return newCursor(localResult);
}
origin: com.eventsourcing/h2

  @Override
  protected Cursor run() throws Exception {
    viewIndex.setupQueryParameters(viewIndex.getSession(), first, last, null);
    ArrayList<JoinBatch> joinBatches = batchUnion.joinBatches;
    for (int i = 0, size = joinBatches.size(); i < size; i++) {
      assert topFutureCursors[i] != null;
      joinBatches.get(i).viewTopFutureCursor = topFutureCursors[i];
    }
    LocalResult localResult;
    try {
      localResult = viewIndex.getQuery().query(0);
    } finally {
      for (int i = 0, size = joinBatches.size(); i < size; i++) {
        joinBatches.get(i).viewTopFutureCursor = null;
      }
    }
    return newCursor(localResult);
  }
}
origin: org.wowtools/h2

  @Override
  protected Cursor run() throws Exception {
    viewIndex.setupQueryParameters(viewIndex.getSession(), first, last, null);
    ArrayList<JoinBatch> joinBatches = batchUnion.joinBatches;
    for (int i = 0, size = joinBatches.size(); i < size; i++) {
      assert topFutureCursors[i] != null;
      joinBatches.get(i).viewTopFutureCursor = topFutureCursors[i];
    }
    LocalResult localResult;
    try {
      localResult = viewIndex.getQuery().query(0);
    } finally {
      for (int i = 0, size = joinBatches.size(); i < size; i++) {
        joinBatches.get(i).viewTopFutureCursor = null;
      }
    }
    return newCursor(localResult);
  }
}
origin: org.wowtools/h2

private Cursor find(Session session, SearchRow first, SearchRow last,
    SearchRow intersection) {
  if (recursive) {
    return findRecursive(first, last);
  }
  setupQueryParameters(session, first, last, intersection);
  LocalResult result = query.query(0);
  return new ViewCursor(this, result, first, last);
}
origin: com.eventsourcing/h2

private Cursor find(Session session, SearchRow first, SearchRow last,
    SearchRow intersection) {
  if (recursive) {
    return findRecursive(first, last);
  }
  setupQueryParameters(session, first, last, intersection);
  LocalResult result = query.query(0);
  return new ViewCursor(this, result, first, last);
}
origin: com.eventsourcing/h2

  @Override
  protected Cursor run() throws Exception {
    if (topFutureCursor == null) {
      // if the top cursor is empty then the whole query will produce
      // empty result
      return EMPTY_CURSOR;
    }
    viewIndex.setupQueryParameters(viewIndex.getSession(), first, last, null);
    JoinBatch.this.viewTopFutureCursor = topFutureCursor;
    LocalResult localResult;
    try {
      localResult = viewIndex.getQuery().query(0);
    } finally {
      JoinBatch.this.viewTopFutureCursor = null;
    }
    return newCursor(localResult);
  }
}
origin: org.wowtools/h2

  @Override
  protected Cursor run() throws Exception {
    if (topFutureCursor == null) {
      // if the top cursor is empty then the whole query will produce
      // empty result
      return EMPTY_CURSOR;
    }
    viewIndex.setupQueryParameters(viewIndex.getSession(), first, last, null);
    JoinBatch.this.viewTopFutureCursor = topFutureCursor;
    LocalResult localResult;
    try {
      localResult = viewIndex.getQuery().query(0);
    } finally {
      JoinBatch.this.viewTopFutureCursor = null;
    }
    return newCursor(localResult);
  }
}
origin: org.wowtools/h2

@Override
public final boolean addSearchRows(SearchRow first, SearchRow last) {
  resetAfterFind();
  viewIndex.setupQueryParameters(viewIndex.getSession(), first, last, null);
  R r;
  if (resultSize < result.size()) {
    // get reused runner
    r = queryRunner(resultSize);
  } else {
    // create new runner
    result.add(r = newQueryRunner());
  }
  r.first = first;
  r.last = last;
  if (!collectSearchRows(r)) {
    r.clear();
    return false;
  }
  resultSize++;
  return true;
}
origin: com.eventsourcing/h2

@Override
public final boolean addSearchRows(SearchRow first, SearchRow last) {
  resetAfterFind();
  viewIndex.setupQueryParameters(viewIndex.getSession(), first, last, null);
  R r;
  if (resultSize < result.size()) {
    // get reused runner
    r = queryRunner(resultSize);
  } else {
    // create new runner
    result.add(r = newQueryRunner());
  }
  r.first = first;
  r.last = last;
  if (!collectSearchRows(r)) {
    r.clear();
    return false;
  }
  resultSize++;
  return true;
}
org.h2.indexViewIndexsetupQueryParameters

Javadoc

Set the query parameters.

Popular methods of ViewIndex

  • getQuery
  • <init>
    Constructor for plan item generation. Over this index the query will be executed.
  • getCost
  • getSession
  • initBaseIndex
  • setRecursive
  • compareRows
  • find
  • findRecursive
  • getTable
  • isExpired
  • isRecursive
  • isExpired,
  • isRecursive,
  • prepareSubQuery,
  • setParameter

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now