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

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

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

origin: org.apache.carbondata/carbondata-core

/**
 * This method returns the list of Blocks associated with the segment
 * from the SegmentUpdateDetails List.
 * @param segmentName
 * @return
 */
public List<String> getBlockNameFromSegment(String segmentName) {
 List<String> blockNames = new ArrayList<String>();
 for (SegmentUpdateDetails block : updateDetails) {
  if (block.getSegmentName().equalsIgnoreCase(segmentName) && !CarbonUpdateUtil
    .isBlockInvalid(block.getSegmentStatus())) {
   blockNames.add(block.getBlockName());
  }
 }
 return blockNames;
}
origin: org.apache.carbondata/carbondata-core

/**
 * check the block whether is valid
 *
 * @param segName segment name
 * @param blockName  block name
 * @return the status of block whether is valid
 */
public boolean isBlockValid(String segName, String blockName) {
 SegmentUpdateDetails details = getDetailsForABlock(segName, blockName);
 return details == null || !CarbonUpdateUtil.isBlockInvalid(details.getSegmentStatus());
}
/**
origin: org.apache.carbondata/carbondata-core

 && CarbonUpdateUtil.isBlockInvalid(blockDetails.getSegmentStatus())) {
validBlock = false;
origin: org.apache.carbondata/carbondata-core

/**
 * Returns all delta file paths of specified block
 *
 * @param blockDir block directory with CarbonFile format
 * @param blockNameFromTuple block name from tuple
 * @param extension the file extension name
 * @param segment the segment name
 * @return the list of delete file
 */
private List<String> getDeltaFiles(CarbonFile blockDir, final String blockNameFromTuple,
  final String extension, String segment) throws IOException {
 List<String> deleteFileList = new ArrayList<>();
 for (SegmentUpdateDetails block : updateDetails) {
  if (block.getBlockName().equalsIgnoreCase(blockNameFromTuple) && block.getSegmentName()
    .equalsIgnoreCase(segment) && !CarbonUpdateUtil
    .isBlockInvalid(block.getSegmentStatus())) {
   final long deltaStartTimestamp = getStartTimeOfDeltaFile(extension, block);
   // If there is no delete delete file , then return null
   if (deltaStartTimestamp == 0) {
    return deleteFileList;
   }
   final long deltaEndTimeStamp = getEndTimeOfDeltaFile(extension, block);
   // final long deltaEndTimeStamp = block.getDeleteDeltaEndTimeAsLong();
   // final long deltaStartTimestamp = block.getDeleteDeltaStartTimeAsLong();
   return getFilePaths(blockDir, blockNameFromTuple, extension, deleteFileList,
     deltaStartTimestamp, deltaEndTimeStamp);
  }
 }
 return deleteFileList;
}
origin: org.apache.carbondata/carbondata-core

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

 && updateLists[i].getSegmentStatus() != SegmentStatus.COMPACTED
 && updateLists[i].getSegmentStatus() != SegmentStatus.MARKED_FOR_DELETE) {
updateLists[i].setSegmentStatus(SegmentStatus.COMPACTED);
origin: org.apache.carbondata/carbondata-core

if ((block.getBlockName().equalsIgnoreCase(blockName)) &&
  (block.getSegmentName().equalsIgnoreCase(segmentId.getSegmentNo()))
  && !CarbonUpdateUtil.isBlockInvalid((block.getSegmentStatus()))) {
 final long deltaStartTimestamp =
   getStartTimeOfDeltaFile(CarbonCommonConstants.DELETE_DELTA_FILE_EXT, block);
origin: org.apache.carbondata/carbondata-hadoop

if (null == details || !CarbonUpdateUtil.isBlockInvalid(details.getSegmentStatus())) {
 Long blockCount = blockRowCountMapping.get(key);
 if (blockCount == null) {
origin: org.apache.carbondata/carbondata-processing

tempSegmentUpdateDetails.setSegmentStatus(origDetails.getSegmentStatus());
break;
origin: org.apache.carbondata/carbondata-core

if (CarbonUpdateUtil.isBlockInvalid(block.getSegmentStatus())) {
 completeListOfDeleteDeltaFiles = updateStatusManager
     .getDeleteDeltaInvalidFilesList(block, true,
org.apache.carbondata.core.mutateSegmentUpdateDetailsgetSegmentStatus

Popular methods of SegmentUpdateDetails

  • getBlockName
  • getDeletedRowsInBlock
  • 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
  • Top 25 Plugins for Webstorm
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