congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IndexerImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
IndexerImpl
in
com.ohmdb.impl

Best Java code snippets using com.ohmdb.impl.IndexerImpl (Showing top 6 results out of 315)

origin: com.gitblit.ohmdb/ohmdb

@SuppressWarnings("unchecked")
private <T> IndexerImpl<E, T> complexIndex(Object[] columns, final Mapper<E, ?> mapper) {
  Index index = makeIndex();
  ComplexIndex<E> complexIndex = new ComplexIndexImpl<E>((Mapper<E, Object>) mapper, index);
  for (Object col : columns) {
    String colName = jokerator.decode(col);
    prop(colName).addComplexIndex(complexIndex);
  }
  allComplexIndices = U.expand(allComplexIndices, complexIndex);
  E entity = newEntity();
  for (long id : ids()) {
    get_(id, entity);
    complexIndex.add(entity, id);
  }
  return new IndexerImpl<E, T>(complexIndex, index);
}
origin: com.gitblit.ohmdb/ohmdb

if (indexer instanceof IndexerImpl) {
  IndexerImpl<?, ?> ind = (IndexerImpl<?, ?>) indexer;
  Index index = ind.getIndex();
  return index.find(op, value);
} else {
origin: com.gitblit.ohmdb/ohmdb-core

if (indexer instanceof IndexerImpl) {
  IndexerImpl<?, ?> ind = (IndexerImpl<?, ?>) indexer;
  Index index = ind.getIndex();
  return index.find(op, value);
} else {
origin: ohmdb/ohmdb

@SuppressWarnings("unchecked")
private <T> IndexerImpl<E, T> complexIndex(Object[] columns, final Mapper<E, ?> mapper) {
  Index index = makeIndex();
  ComplexIndex<E> complexIndex = new ComplexIndexImpl<E>((Mapper<E, Object>) mapper, index);
  for (Object col : columns) {
    String colName = jokerator.decode(col);
    prop(colName).addComplexIndex(complexIndex);
  }
  allComplexIndices = U.expand(allComplexIndices, complexIndex);
  E entity = newEntity();
  for (long id : ids()) {
    get_(id, entity);
    complexIndex.add(entity, id);
  }
  return new IndexerImpl<E, T>(complexIndex, index);
}
origin: ohmdb/ohmdb

if (indexer instanceof IndexerImpl) {
  IndexerImpl<?, ?> ind = (IndexerImpl<?, ?>) indexer;
  Index index = ind.getIndex();
  return index.find(op, value);
} else {
origin: com.gitblit.ohmdb/ohmdb-core

@SuppressWarnings("unchecked")
private <T> IndexerImpl<E, T> complexIndex(Object[] columns, final Mapper<E, ?> mapper) {
  Index index = makeIndex();
  ComplexIndex<E> complexIndex = new ComplexIndexImpl<E>((Mapper<E, Object>) mapper, index);
  for (Object col : columns) {
    String colName = jokerator.decode(col);
    prop(colName).addComplexIndex(complexIndex);
  }
  allComplexIndices = U.expand(allComplexIndices, complexIndex);
  E entity = newEntity();
  for (long id : ids()) {
    get_(id, entity);
    complexIndex.add(entity, id);
  }
  return new IndexerImpl<E, T>(complexIndex, index);
}
com.ohmdb.implIndexerImpl

Most used methods

  • <init>
  • getIndex

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Option (scala)
  • Best plugins for Eclipse
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