Codota Logo
ViewIndex.getCost
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain ViewIndex
private void myMethod () {
ViewIndex v =
  • Codota IconTableView tableView;String querySQL;ArrayList originalParameters;new ViewIndex(tableView, querySQL, originalParameters, recursive)
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

@Override
public PlanItem getBestPlanItem(Session session, int[] masks,
    TableFilter[] filters, int filter, SortOrder sortOrder,
    HashSet<Column> allColumnsSet) {
  final CacheKey cacheKey = new CacheKey(masks, this);
  Map<Object, ViewIndex> indexCache = session.getViewIndexCache(topQuery != null);
  ViewIndex i = indexCache.get(cacheKey);
  if (i == null || i.isExpired()) {
    i = new ViewIndex(this, index, session, masks, filters, filter, sortOrder);
    indexCache.put(cacheKey, i);
  }
  PlanItem item = new PlanItem();
  item.cost = i.getCost(session, masks, filters, filter, sortOrder, allColumnsSet);
  item.setIndex(i);
  return item;
}
origin: org.wowtools/h2

@Override
public PlanItem getBestPlanItem(Session session, int[] masks,
    TableFilter[] filters, int filter, SortOrder sortOrder,
    HashSet<Column> allColumnsSet) {
  final CacheKey cacheKey = new CacheKey(masks, this);
  Map<Object, ViewIndex> indexCache = session.getViewIndexCache(topQuery != null);
  ViewIndex i = indexCache.get(cacheKey);
  if (i == null || i.isExpired()) {
    i = new ViewIndex(this, index, session, masks, filters, filter, sortOrder);
    indexCache.put(cacheKey, i);
  }
  PlanItem item = new PlanItem();
  item.cost = i.getCost(session, masks, filters, filter, sortOrder, allColumnsSet);
  item.setIndex(i);
  return item;
}
origin: com.eventsourcing/h2

@Override
public PlanItem getBestPlanItem(Session session, int[] masks,
    TableFilter[] filters, int filter, SortOrder sortOrder,
    HashSet<Column> allColumnsSet) {
  final CacheKey cacheKey = new CacheKey(masks, this);
  Map<Object, ViewIndex> indexCache = session.getViewIndexCache(topQuery != null);
  ViewIndex i = indexCache.get(cacheKey);
  if (i == null || i.isExpired()) {
    i = new ViewIndex(this, index, session, masks, filters, filter, sortOrder);
    indexCache.put(cacheKey, i);
  }
  PlanItem item = new PlanItem();
  item.cost = i.getCost(session, masks, filters, filter, sortOrder, allColumnsSet);
  item.setIndex(i);
  return item;
}
origin: com.h2database/com.springsource.org.h2

public PlanItem getBestPlanItem(Session session, int[] masks) throws SQLException {
  PlanItem item = new PlanItem();
  item.cost = index.getCost(session, masks);
  IntArray masksArray = new IntArray(masks == null ? new int[0] : masks);
  ViewIndex i2 = (ViewIndex) indexCache.get(masksArray);
  if (i2 == null || i2.getSession() != session) {
    i2 = new ViewIndex(this, index, session, masks);
    indexCache.put(masksArray, i2);
  }
  item.setIndex(i2);
  return item;
}
org.h2.indexViewIndexgetCost

Popular methods of ViewIndex

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

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • getContentResolver (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now