core/src/main/java/org/apache/carbondata/core/statusmanager/SegmentStatusManager.java
/**
   * Return true if any load or insert overwrite is in progress for specified table
   */
Return true if any load or insert overwrite is in progress for specified table
Return true if any load or insert overwrite is in progress for specified table
public static Boolean isLoadInProgressInTable(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_IN_PROGRESS
            || segmentStatus == SegmentStatus.INSERT_OVERWRITE_IN_PROGRESS) {
          loadInProgress =
              isLoadInProgress(carbonTable.getAbsoluteTableIdentifier(),
                  loaddetail.getLoadName());
        }
      }
    }
    return loadInProgress;
  }
public static Boolean isLoadInProgressInTable ( 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_IN_PROGRESS || segmentStatus == SegmentStatus . INSERT_OVERWRITE_IN_PROGRESS ) { loadInProgress = isLoadInProgress ( carbonTable . getAbsoluteTableIdentifier ( ) , loaddetail . getLoadName ( ) ) ; } } } return loadInProgress ; }
Return true if any load or insert overwrite is in progress for specified table
Return true if any load or insert overwrite is in progress for specified table