Tabnine Logo
SegmentUpdateDetails.getDeletedRowsInBlock
Code IndexAdd Tabnine to your IDE (free)

How to use
getDeletedRowsInBlock
method
in
org.apache.carbondata.core.mutate.SegmentUpdateDetails

Best Java code snippets using org.apache.carbondata.core.mutate.SegmentUpdateDetails.getDeletedRowsInBlock (Showing top 4 results out of 315)

origin: org.apache.carbondata/carbondata-core

/**
 * Return row count of input block
 */
public static long getRowCount(
  BlockMappingVO blockMappingVO,
  CarbonTable carbonTable) {
 SegmentUpdateStatusManager updateStatusManager =
   new SegmentUpdateStatusManager(carbonTable);
 long rowCount = 0;
 Map<String, Long> blockRowCountMap = blockMappingVO.getBlockRowCountMapping();
 for (Map.Entry<String, Long> blockRowEntry : blockRowCountMap.entrySet()) {
  String key = blockRowEntry.getKey();
  long alreadyDeletedCount = 0;
  SegmentUpdateDetails detail = updateStatusManager.getDetailsForABlock(key);
  if (detail != null) {
   alreadyDeletedCount = Long.parseLong(detail.getDeletedRowsInBlock());
  }
  rowCount += (blockRowEntry.getValue() - alreadyDeletedCount);
 }
 return rowCount;
}
origin: org.apache.carbondata/carbondata-core

/**
 *
 * @param blockMappingVO
 * @param segmentUpdateStatusManager
 */
public static void createBlockDetailsMap(BlockMappingVO blockMappingVO,
                     SegmentUpdateStatusManager segmentUpdateStatusManager) {
 Map<String, Long> blockRowCountMap = blockMappingVO.getBlockRowCountMapping();
 Map<String, RowCountDetailsVO> outputMap =
     new HashMap<>(CarbonCommonConstants.DEFAULT_COLLECTION_SIZE);
 for (Map.Entry<String, Long> blockRowEntry : blockRowCountMap.entrySet()) {
  String key = blockRowEntry.getKey();
  long alreadyDeletedCount = 0;
  SegmentUpdateDetails detail = segmentUpdateStatusManager.getDetailsForABlock(key);
  if (null != detail) {
   alreadyDeletedCount = Long.parseLong(detail.getDeletedRowsInBlock());
  }
  RowCountDetailsVO rowCountDetailsVO =
      new RowCountDetailsVO(blockRowEntry.getValue(), alreadyDeletedCount);
  outputMap.put(key, rowCountDetailsVO);
 }
 blockMappingVO.setCompleteBlockRowDetailVO(outputMap);
}
origin: org.apache.carbondata/carbondata-core

 blockDetail.setDeletedRowsInBlock(newBlockEntry.getDeletedRowsInBlock());
} else {
origin: org.apache.carbondata/carbondata-processing

   .equalsIgnoreCase(carbonDataMergerUtilResult.getSegmentName())) {
tempSegmentUpdateDetails.setDeletedRowsInBlock(origDetails.getDeletedRowsInBlock());
tempSegmentUpdateDetails.setSegmentStatus(origDetails.getSegmentStatus());
break;
org.apache.carbondata.core.mutateSegmentUpdateDetailsgetDeletedRowsInBlock

Popular methods of SegmentUpdateDetails

  • getSegmentStatus
  • getBlockName
  • getSegmentName
  • setDeleteDeltaEndTimestamp
  • setDeleteDeltaStartTimestamp
  • setDeletedRowsInBlock
  • setSegmentStatus
  • <init>
  • equals
  • getActualBlockName
    returns complete block name
  • getDeleteDeltaEndTimeAsLong
    return deleteDeltaTime as long
  • getDeleteDeltaEndTimestamp
  • getDeleteDeltaEndTimeAsLong,
  • getDeleteDeltaEndTimestamp,
  • getDeleteDeltaStartTimeAsLong,
  • getDeleteDeltaStartTimestamp,
  • getTimeStampAsLong,
  • hashCode,
  • setBlockName,
  • setSegmentName

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Notification (javax.management)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 21 Best Atom Packages for 2021
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