Codota Logo
ProcedureWALFormat.writeTrailer
Code IndexAdd Codota to your IDE (free)

How to use
writeTrailer
method
in
org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormat

Best Java code snippets using org.apache.hadoop.hbase.procedure2.store.wal.ProcedureWALFormat.writeTrailer (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: apache/hbase

private void closeCurrentLogStream(boolean abort) {
 if (stream == null || logs.isEmpty()) {
  return;
 }
 try {
  ProcedureWALFile log = logs.getLast();
  // If the loading flag is true, it usually means that we fail when loading procedures, so we
  // should not persist the store tracker, as its state may not be correct.
  if (!loading.get()) {
   log.setProcIds(storeTracker.getModifiedMinProcId(), storeTracker.getModifiedMaxProcId());
   log.updateLocalTracker(storeTracker);
   if (!abort) {
    long trailerSize = ProcedureWALFormat.writeTrailer(stream, storeTracker);
    log.addToSize(trailerSize);
   }
  }
 } catch (IOException e) {
  LOG.warn("Unable to write the trailer", e);
 }
 try {
  stream.close();
 } catch (IOException e) {
  LOG.error("Unable to close the stream", e);
 }
 stream = null;
}
origin: com.aliyun.hbase/alihbase-procedure

private void closeCurrentLogStream() {
 if (stream == null || logs.isEmpty()) {
  return;
 }
 try {
  ProcedureWALFile log = logs.getLast();
  log.setProcIds(storeTracker.getUpdatedMinProcId(), storeTracker.getUpdatedMaxProcId());
  log.updateLocalTracker(storeTracker);
  long trailerSize = ProcedureWALFormat.writeTrailer(stream, storeTracker);
  log.addToSize(trailerSize);
 } catch (IOException e) {
  LOG.warn("Unable to write the trailer: " + e.getMessage());
 }
 try {
  stream.close();
 } catch (IOException e) {
  LOG.error("Unable to close the stream", e);
 }
 stream = null;
}
origin: org.apache.hbase/hbase-procedure

private void closeCurrentLogStream(boolean abort) {
 if (stream == null || logs.isEmpty()) {
  return;
 }
 try {
  ProcedureWALFile log = logs.getLast();
  // If the loading flag is true, it usually means that we fail when loading procedures, so we
  // should not persist the store tracker, as its state may not be correct.
  if (!loading.get()) {
   log.setProcIds(storeTracker.getModifiedMinProcId(), storeTracker.getModifiedMaxProcId());
   log.updateLocalTracker(storeTracker);
   if (!abort) {
    long trailerSize = ProcedureWALFormat.writeTrailer(stream, storeTracker);
    log.addToSize(trailerSize);
   }
  }
 } catch (IOException e) {
  LOG.warn("Unable to write the trailer", e);
 }
 try {
  stream.close();
 } catch (IOException e) {
  LOG.error("Unable to close the stream", e);
 }
 stream = null;
}
origin: harbby/presto-connectors

private void closeStream() {
 try {
  if (stream != null) {
   try {
    ProcedureWALFile log = logs.getLast();
    log.setProcIds(storeTracker.getUpdatedMinProcId(), storeTracker.getUpdatedMaxProcId());
    ProcedureWALFormat.writeTrailer(stream, storeTracker);
   } catch (IOException e) {
    LOG.warn("Unable to write the trailer: " + e.getMessage());
   }
   stream.close();
  }
 } catch (IOException e) {
  LOG.error("Unable to close the stream", e);
 } finally {
  stream = null;
 }
}
org.apache.hadoop.hbase.procedure2.store.walProcedureWALFormatwriteTrailer

Popular methods of ProcedureWALFormat

  • load
    Load all the procedures in these ProcedureWALFiles, and rebuild the given tracker if needed, i.e, th
  • readEntry
  • readHeader
  • readTrailer
  • writeDelete
  • writeEntry
  • writeHeader
  • writeInsert
  • writeUpdate

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • JLabel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now