congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
HoodieActiveTimeline.getSavePointTimeline
Code IndexAdd Tabnine to your IDE (free)

How to use
getSavePointTimeline
method
in
com.uber.hoodie.common.table.timeline.HoodieActiveTimeline

Best Java code snippets using com.uber.hoodie.common.table.timeline.HoodieActiveTimeline.getSavePointTimeline (Showing top 4 results out of 315)

origin: com.uber.hoodie/hoodie-client

/**
 * Get only the completed (no-inflights) savepoint timeline
 */
public HoodieTimeline getCompletedSavepointTimeline() {
 return getActiveTimeline().getSavePointTimeline().filterCompletedInstants();
}
origin: uber/hudi

/**
 * Get only the completed (no-inflights) savepoint timeline
 */
public HoodieTimeline getCompletedSavepointTimeline() {
 return getActiveTimeline().getSavePointTimeline().filterCompletedInstants();
}
origin: uber/hudi

@CliCommand(value = "savepoints show", help = "Show the savepoints")
public String showSavepoints() throws IOException {
 HoodieActiveTimeline activeTimeline = HoodieCLI.tableMetadata.getActiveTimeline();
 HoodieTimeline timeline = activeTimeline.getSavePointTimeline().filterCompletedInstants();
 List<HoodieInstant> commits = timeline.getInstants().collect(Collectors.toList());
 String[][] rows = new String[commits.size()][];
 Collections.reverse(commits);
 for (int i = 0; i < commits.size(); i++) {
  HoodieInstant commit = commits.get(i);
  rows[i] = new String[] {commit.getTimestamp()};
 }
 return HoodiePrintHelper.print(new String[] {"SavepointTime"}, rows);
}
origin: uber/hudi

@CliAvailabilityIndicator({"savepoint rollback"})
public boolean isRollbackToSavepointAvailable() {
 return HoodieCLI.tableMetadata != null && !HoodieCLI.tableMetadata.getActiveTimeline().getSavePointTimeline()
   .filterCompletedInstants().empty();
}
com.uber.hoodie.common.table.timelineHoodieActiveTimelinegetSavePointTimeline

Javadoc

Get only the save point action (inflight and completed) in the active timeline

Popular methods of HoodieActiveTimeline

  • getCommitTimeline
  • getCommitsTimeline
  • getCommitsAndCompactionTimeline
  • getInstantDetails
  • getTimelineOfActions
  • createNewCommitTime
  • getInstantAuxiliaryDetails
  • reload
  • <init>
  • createInflight
  • filterPendingCompactionTimeline
  • getDeltaCommitTimeline
  • filterPendingCompactionTimeline,
  • getDeltaCommitTimeline,
  • lastInstant,
  • saveAsComplete,
  • saveToCompactionRequested,
  • transitionCompactionRequestedToInflight,
  • deleteCompactionRequested,
  • deleteInflight,
  • filterInflightsExcludingCompaction,
  • getAllCommitsTimeline

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now