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

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

Best Java code snippets using com.oberasoftware.jasdb.api.index.CompositeIndexField.getIndexFields (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.indexCompositeIndexFieldgetIndexFields

Popular methods of CompositeIndexField

    Popular in Java

    • Creating JSON documents from java classes using gson
    • startActivity (Activity)
    • setContentView (Activity)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • BorderLayout (java.awt)
      A border layout lays out a container, arranging and resizing its components to fit in five regions:
    • Handler (java.util.logging)
      A Handler object accepts a logging request and exports the desired messages to a target, for example
    • Modifier (javassist)
      The Modifier class provides static methods and constants to decode class and member access modifiers
    • Response (javax.ws.rs.core)
      Defines the contract between a returned instance and the runtime when an application needs to provid
    • LoggerFactory (org.slf4j)
      The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
    • Option (scala)
    • CodeWhisperer alternatives
    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