Codota Logo
SegmentUpdateDetails.getDeletedRowsInBlock
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JCheckBox (javax.swing)
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