Tabnine Logo
SystemTableBackup.getEntries
Code IndexAdd Tabnine to your IDE (free)

How to use
getEntries
method
in
com.moz.fiji.schema.avro.SystemTableBackup

Best Java code snippets using com.moz.fiji.schema.avro.SystemTableBackup.getEntries (Showing top 4 results out of 315)

origin: com.moz.fiji.schema/fiji-schema-cassandra

/** {@inheritDoc} */
@Override
public void fromBackup(SystemTableBackup backup) throws IOException {
 final State state = mState.get();
 Preconditions.checkState(state == State.OPEN,
   "Cannot restore backup to SystemTable instance in state %s.", state);
 LOG.info(String.format("Restoring system table from backup with %d entries.",
   backup.getEntries().size()));
 for (SystemTableEntry entry : backup.getEntries()) {
  putValue(entry.getKey(), entry.getValue().array());
 }
 // TODO: Flush?
 //mTable.flushCommits();
}
origin: com.moz.fiji.schema/fiji-schema

/** {@inheritDoc} */
@Override
public void fromBackup(SystemTableBackup backup) throws IOException {
 final State state = mState.get();
 Preconditions.checkState(state == State.OPEN,
   "Cannot restore backup to SystemTable instance in state %s.", state);
 LOG.info(String.format("Restoring system table from backup with %d entries.",
   backup.getEntries().size()));
 for (SystemTableEntry entry : backup.getEntries()) {
  putValue(entry.getKey(), entry.getValue().array());
 }
 mTable.flushCommits();
}
origin: com.moz.fiji.schema/fiji-schema

 /**
  * Restores all SystemTable entries from the backup.
  *
  * @param backup the deserialized backup of the metadata.
  * @param fiji the connected Fiji instance.
  * @throws IOException if there is an error communicating with HBase.
  */
 public void restoreSystemVars(MetadataBackup backup, Fiji fiji) throws IOException {
  // Restore all System table entries from the file.
  final FijiSystemTable systemTable = fiji.getSystemTable();
  LOG.info("Restoring system table entries...");
  systemTable.fromBackup(backup.getSystemTable());
  LOG.info(String.format("Restored %d entries.", backup.getSystemTable().getEntries().size()));
 }
}
origin: com.moz.fiji.schema/fiji-schema-cassandra

 /**
  * Restores all SystemTable entries from the backup.
  *
  * @param backup the deserialized backup of the metadata.
  * @param fiji the connected Fiji instance.
  * @throws java.io.IOException if there is an error communicating with HBase.
  */
 public void restoreSystemVars(MetadataBackup backup, Fiji fiji) throws IOException {
  // Restore all System table entries from the file.
  final FijiSystemTable systemTable = fiji.getSystemTable();
  LOG.info("Restoring system table entries...");
  systemTable.fromBackup(backup.getSystemTable());
  LOG.info(String.format("Restored %d entries.", backup.getSystemTable().getEntries().size()));
 }
}
com.moz.fiji.schema.avroSystemTableBackupgetEntries

Popular methods of SystemTableBackup

  • newBuilder

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top 12 Jupyter Notebook extensions
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