Tabnine Logo
HoodieActiveTimeline.lastInstant
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: uber/hudi

private Map<HeaderMetadataType, String> generateHeader(String commit) {
 // generate metadata
 Map<HeaderMetadataType, String> header = Maps.newHashMap();
 header.put(HeaderMetadataType.INSTANT_TIME, metaClient.getActiveTimeline().lastInstant().get().getTimestamp());
 header.put(HeaderMetadataType.TARGET_INSTANT_TIME, commit);
 header.put(HeaderMetadataType.COMMAND_BLOCK_TYPE, String.valueOf(HoodieCommandBlockTypeEnum.ROLLBACK_PREVIOUS_BLOCK
   .ordinal()));
 return header;
}
origin: com.uber.hoodie/hoodie-client

private Map<HeaderMetadataType, String> generateHeader(String commit) {
 // generate metadata
 Map<HeaderMetadataType, String> header = Maps.newHashMap();
 header.put(HeaderMetadataType.INSTANT_TIME, metaClient.getActiveTimeline().lastInstant().get().getTimestamp());
 header.put(HeaderMetadataType.TARGET_INSTANT_TIME, commit);
 header.put(HeaderMetadataType.COMMAND_BLOCK_TYPE, String.valueOf(HoodieCommandBlockTypeEnum.ROLLBACK_PREVIOUS_BLOCK
   .ordinal()));
 return header;
}
origin: uber/hudi

@Test
public void testTimelineOperationsBasic() throws Exception {
 timeline = new HoodieActiveTimeline(metaClient);
 assertTrue(timeline.empty());
 assertEquals("", 0, timeline.countInstants());
 assertEquals("", Optional.empty(), timeline.firstInstant());
 assertEquals("", Optional.empty(), timeline.nthInstant(5));
 assertEquals("", Optional.empty(), timeline.nthInstant(-1));
 assertEquals("", Optional.empty(), timeline.lastInstant());
 assertFalse("", timeline.containsInstant(new HoodieInstant(false, HoodieTimeline.COMMIT_ACTION, "01")));
}
origin: uber/hudi

timeline.lastInstant().get().getTimestamp(), newCommitTime, HoodieTimeline.GREATER));
com.uber.hoodie.common.table.timelineHoodieActiveTimelinelastInstant

Popular methods of HoodieActiveTimeline

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

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Collectors (java.util.stream)
  • Top PhpStorm 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