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

How to use
removeRecord
method
in
com.oberasoftware.jasdb.writer.transactional.TransactionalRecordWriter

Best Java code snippets using com.oberasoftware.jasdb.writer.transactional.TransactionalRecordWriter.removeRecord (Showing top 1 results out of 315)

origin: oberasoftware/jasdb

@Override
public void writeRecord(UUIDKey documentId, ClonableDataStream dataStream) throws JasDBStorageException {
  String recordContents = RecordStreamUtil.toString(dataStream);
  writer.writeRecord(recordContents, p -> {
    try {
      index.insertIntoIndex(documentId.cloneKey(false).addKey(keyInfo.getKeyNameMapper(), "RECORD_POINTER", new LongKey(p)));
    } catch(JasDBStorageException e) {
      try {
        removeRecord(documentId);
      } catch (JasDBStorageException e1) {
        LOG.error("", e);
      }
      throw new RuntimeJasDBException("Unable to write record already exists", e);
    }
  });
}
com.oberasoftware.jasdb.writer.transactionalTransactionalRecordWriterremoveRecord

Popular methods of TransactionalRecordWriter

  • <init>
  • getRecordPointer
  • readAllRecords
  • readRecord
  • verify

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 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