Tabnine Logo
IndexDefinition.getIndexName
Code IndexAdd Tabnine to your IDE (free)

How to use
getIndexName
method
in
com.oberasoftware.jasdb.api.model.IndexDefinition

Best Java code snippets using com.oberasoftware.jasdb.api.model.IndexDefinition.getIndexName (Showing top 4 results out of 315)

origin: oberasoftware/jasdb

@Override
public List<String> getIndexNames() throws JasDBStorageException {
  BagConnector connector = RemoteConnectorFactory.createConnector(nodeInformation, BagConnector.class);
  List<IndexDefinition> indexDefinitions = connector.getIndexDefinitions(context, instance, meta.getName());
  List<String> indexNames = new ArrayList<>(indexDefinitions.size());
  for(IndexDefinition definition : indexDefinitions) {
    indexNames.add(definition.getIndexName());
  }
  return indexNames;
}
origin: oberasoftware/jasdb

@Override
public boolean equals(Object o) {
  if(o instanceof IndexDefinition) {
    IndexDefinition other = (IndexDefinition) o;
    if(other.getHeaderDescriptor().equals(headerDescriptor)
        && other.getValueDescriptor().equals(valueDescriptor)
        && other.getIndexName().equals(indexName)
        && other.getIndexType() == indexType) {
      return true;
    }
  }
  return false;
}
origin: oberasoftware/jasdb

private Index loadIndex(String bagName, IndexDefinition indexDefinition) throws JasDBStorageException {
  try {
    KeyInfo keyInfo = new KeyInfoImpl(indexDefinition.getHeaderDescriptor(), indexDefinition.getValueDescriptor());
    File indexFile = createIndexFile(bagName, indexDefinition.getIndexName(), false);
    switch(IndexTypes.getTypeFor(indexDefinition.getIndexType())) {
      case BTREE:
        LOG.debug("Loaded BTree Index for key: {}", indexDefinition.getIndexName());
        Index btreeIndex = new BTreeIndex(indexFile, keyInfo);
        return configureIndex(IndexTypes.BTREE, btreeIndex);
      default:
        throw new JasDBStorageException("Reading from this index type: " + indexDefinition.getIndexName() +
            " is not supported");
    }
  } catch(ConfigurationException e) {
    throw new JasDBStorageException("Unable to load index, invalid configuration", e);
  }
}
origin: oberasoftware/jasdb

public static IndexEntry map(IndexDefinition definition, boolean isUnique) {
  return new IndexEntry(definition.getIndexName(), definition.getHeaderDescriptor(), definition.getValueDescriptor(), isUnique, definition.getIndexType());
}
com.oberasoftware.jasdb.api.modelIndexDefinitiongetIndexName

Popular methods of IndexDefinition

  • <init>
  • getHeaderDescriptor
  • getIndexType
  • getValueDescriptor
  • toHeader
  • fromHeader

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Menu (java.awt)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JOptionPane (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Best IntelliJ plugins
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