core/src/main/java/org/apache/carbondata/core/statusmanager/SegmentStatusManager.java
/**
   * Return true if insert overwrite is in progress for specified table
   */
Return true if insert overwrite is in progress for specified table
Return true if insert overwrite is in progress for specified table
public static Boolean isOverwriteInProgressInTable(CarbonTable carbonTable) {
    if (carbonTable == null) {
      return false;
    }
    boolean loadInProgress = false;
    String metaPath = carbonTable.getMetaDataFilepath();
    LoadMetadataDetails[] listOfLoadFolderDetailsArray =
        SegmentStatusManager.readLoadMetadata(metaPath);
    if (listOfLoadFolderDetailsArray.length != 0) {
      for (LoadMetadataDetails loaddetail :listOfLoadFolderDetailsArray) {
        SegmentStatus segmentStatus = loaddetail.getSegmentStatus();
        if (segmentStatus == SegmentStatus.INSERT_OVERWRITE_IN_PROGRESS) {
          loadInProgress =
              isLoadInProgress(carbonTable.getAbsoluteTableIdentifier(),
                  loaddetail.getLoadName());
        }
      }
    }
    return loadInProgress;
  }
public static Boolean isOverwriteInProgressInTable ( CarbonTable carbonTable ) { if ( carbonTable == null ) { return false ; } boolean loadInProgress = false ; String metaPath = carbonTable . getMetaDataFilepath ( ) ; LoadMetadataDetails [ ] listOfLoadFolderDetailsArray = SegmentStatusManager . readLoadMetadata ( metaPath ) ; if ( listOfLoadFolderDetailsArray . length != 0 ) { for ( LoadMetadataDetails loaddetail : listOfLoadFolderDetailsArray ) { SegmentStatus segmentStatus = loaddetail . getSegmentStatus ( ) ; if ( segmentStatus == SegmentStatus . INSERT_OVERWRITE_IN_PROGRESS ) { loadInProgress = isLoadInProgress ( carbonTable . getAbsoluteTableIdentifier ( ) , loaddetail . getLoadName ( ) ) ; } } } return loadInProgress ; }
Return true if insert overwrite is in progress for specified table
Return true if insert overwrite is in progress for specified table