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

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

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

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

public static IndexEntry map(IndexDefinition definition, boolean isUnique) {
  return new IndexEntry(definition.getIndexName(), definition.getHeaderDescriptor(), definition.getValueDescriptor(), isUnique, definition.getIndexType());
}
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);
  }
}
com.oberasoftware.jasdb.api.modelIndexDefinitiongetValueDescriptor

Popular methods of IndexDefinition

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

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTextField (javax.swing)
  • Top Vim 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