Tabnine Logo
CompositeIndexField
Code IndexAdd Tabnine to your IDE (free)

How to use
CompositeIndexField
in
com.oberasoftware.jasdb.api.index

Best Java code snippets using com.oberasoftware.jasdb.api.index.CompositeIndexField (Showing top 2 results out of 315)

origin: oberasoftware/jasdb

@Override
public Index createIndex(String bagName, CompositeIndexField compositeIndexFields, boolean unique, IndexField... values) throws JasDBStorageException {
  KeyInfo keyInfo;
  if(unique) {
    keyInfo = new KeyInfoImpl(compositeIndexFields.getIndexFields(), guaranteeIdKey(values));
  } else {
    List<IndexField> indexFields = Lists.newArrayList(compositeIndexFields.getIndexFields());
    indexFields.add(new SimpleIndexField(SimpleEntity.DOCUMENT_ID, new UUIDKeyType()));
    keyInfo = new KeyInfoImpl(indexFields, Lists.newArrayList(values));
  }
  return createInStore(bagName, keyInfo);
}
origin: oberasoftware/jasdb

@Override
public void ensureIndex(CompositeIndexField queryFields, boolean isUnique, IndexField... valueFields) throws JasDBStorageException {
  BagConnector connector = RemoteConnectorFactory.createConnector(nodeInformation, BagConnector.class);
  KeyInfo keyInfo = new KeyInfoImpl(queryFields.getIndexFields(), Lists.newArrayList(valueFields));
  connector.createIndex(context, instance, meta.getName(),
      new IndexDefinition(keyInfo.getKeyName(), keyInfo.keyAsHeader(), keyInfo.valueAsHeader(), -1), isUnique);
}
com.oberasoftware.jasdb.api.indexCompositeIndexField

Most used methods

  • getIndexFields

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
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