Class DFUFileDetailWrapper

  • All Implemented Interfaces:
    Serializable, org.apache.axis2.databinding.ADBBean

    public class DFUFileDetailWrapper
    extends org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUFileDetail
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUFileDetail

        org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUFileDetail.Factory
    • Field Summary

      • Fields inherited from class org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUFileDetail

        localAccessCost, localAccessCostTracker, localAtRestCost, localAtRestCostTracker, localBinInfo, localBinInfoTracker, localBlooms, localBloomsTracker, localBrowseData, localBrowseDataTracker, localCompressedFileSize, localCompressedFileSizeTracker, localContentType, localContentTypeTracker, localCsvEscape, localCsvEscapeTracker, localCsvQuote, localCsvQuoteTracker, localCsvSeparate, localCsvSeparateTracker, localCsvTerminate, localCsvTerminateTracker, localDescription, localDescriptionTracker, localDFUFilePartsOnClusters, localDFUFilePartsOnClustersTracker, localDir, localDirTracker, localEcl, localEclTracker, localExpirationDate, localExpirationDateTracker, localExpireDays, localExpireDaysTracker, localExtendedIndexInfo, localExtendedIndexInfoTracker, localFilename, localFilenameTracker, localFilesize, localFileSizeInt64, localFileSizeInt64Tracker, localFilesizeTracker, localFormat, localFormatTracker, localFromRoxieCluster, localFromRoxieClusterTracker, localGraphs, localGraphsTracker, localIsCompressed, localIsCompressedTracker, localIsRestricted, localIsRestrictedTracker, localIsSuperfile, localIsSuperfileTracker, localJobName, localJobNameTracker, localJsonInfo, localJsonInfoTracker, localKeyType, localKeyTypeTracker, localMaxRecordSize, localMaxRecordSizeTracker, localModified, localModifiedTracker, localName, localNameTracker, localNodeGroup, localNodeGroupTracker, localNumParts, localNumPartsTracker, localOwner, localOwnerTracker, localPackageID, localPackageIDTracker, localPartition, localPartitionTracker, localPathMask, localPathMaskTracker, localPercentCompressed, localPercentCompressedTracker, localPersistent, localPersistentTracker, localPrefix, localPrefixTracker, localProtectList, localProtectListTracker, localRecordCount, localRecordCountInt64, localRecordCountInt64Tracker, localRecordCountTracker, localRecordSize, localRecordSizeInt64, localRecordSizeInt64Tracker, localRecordSizeTracker, localShowFileContent, localShowFileContentTracker, localStat, localStatTracker, localSubfiles, localSubfilesTracker, localSuperfiles, localSuperfilesTracker, localUserPermission, localUserPermissionTracker, localWuid, localWuidTracker
    • Constructor Summary

      Constructors 
      Constructor Description
      DFUFileDetailWrapper()
      Create an empty Data Column Info object.
      DFUFileDetailWrapper​(org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUFileDetail base)
      Create a Data Column Info object from a axis-generated soap class DFUDataColumn.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EclRecordWrapper deduceFields()
      Deduce fields.
      Set<String> getClusters()  
      ArrayList<DFUDataColumnWrapper> getColumns()
      Gets the columns.
      FileFormat getFileType()
      Gets the file type.
      String getFirstline()
      Gets the firstline.
      static EclRecordWrapper getRecordEcl​(String content)
      Gets the record ecl.
      static EclRecordWrapper getRecordFromECL​(String eclRecordDefinition)
      Gets the record from ECL.
      boolean hasChildDatasets()
      Checks for child datasets.
      boolean hasEcl()
      Checks for ecl.
      boolean hasHeader()
      Checks for header.
      boolean isFirstRowValidFieldNames()
      Checks if is first row valid field names.
      boolean isIndex()
      Checks if is index.
      boolean isSprayedCsv()
      Checks if is sprayed csv.
      void setColumns​(ArrayList<DFUDataColumnWrapper> columns2)
      Sets the columns.
      void setColumns​(List<DFUDataColumnWrapper> columns)
      Sets the columns.
      void setColumns​(org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUDataColumn[] childColumns)
      Sets the columns.
      void setFirstline​(String firstline)
      Sets the firstline.
      void setHasheader​(boolean hasheader)
      Sets the hasheader.
      String toString()  
      • Methods inherited from class org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUFileDetail

        getAccessCost, getAtRestCost, getBinInfo, getBlooms, getBrowseData, getCompressedFileSize, getContentType, getCsvEscape, getCsvQuote, getCsvSeparate, getCsvTerminate, getDescription, getDFUFilePartsOnClusters, getDir, getEcl, getExpirationDate, getExpireDays, getExtendedIndexInfo, getFilename, getFilesize, getFileSizeInt64, getFormat, getFromRoxieCluster, getGraphs, getIsCompressed, getIsRestricted, getIsSuperfile, getJobName, getJsonInfo, getKeyType, getMaxRecordSize, getModified, getName, getNodeGroup, getNumParts, getOMElement, getOwner, getPackageID, getPartition, getPathMask, getPercentCompressed, getPersistent, getPrefix, getProtectList, getRecordCount, getRecordCountInt64, getRecordSize, getRecordSizeInt64, getShowFileContent, getStat, getSubfiles, getSuperfiles, getUserPermission, getWuid, isAccessCostSpecified, isAtRestCostSpecified, isBinInfoSpecified, isBloomsSpecified, isBrowseDataSpecified, isCompressedFileSizeSpecified, isContentTypeSpecified, isCsvEscapeSpecified, isCsvQuoteSpecified, isCsvSeparateSpecified, isCsvTerminateSpecified, isDescriptionSpecified, isDFUFilePartsOnClustersSpecified, isDirSpecified, isEclSpecified, isExpirationDateSpecified, isExpireDaysSpecified, isExtendedIndexInfoSpecified, isFilenameSpecified, isFileSizeInt64Specified, isFilesizeSpecified, isFormatSpecified, isFromRoxieClusterSpecified, isGraphsSpecified, isIsCompressedSpecified, isIsRestrictedSpecified, isIsSuperfileSpecified, isJobNameSpecified, isJsonInfoSpecified, isKeyTypeSpecified, isMaxRecordSizeSpecified, isModifiedSpecified, isNameSpecified, isNodeGroupSpecified, isNumPartsSpecified, isOwnerSpecified, isPackageIDSpecified, isPartitionSpecified, isPathMaskSpecified, isPercentCompressedSpecified, isPersistentSpecified, isPrefixSpecified, isProtectListSpecified, isRecordCountInt64Specified, isRecordCountSpecified, isRecordSizeInt64Specified, isRecordSizeSpecified, isShowFileContentSpecified, isStatSpecified, isSubfilesSpecified, isSuperfilesSpecified, isUserPermissionSpecified, isWuidSpecified, serialize, serialize, setAccessCost, setAtRestCost, setBinInfo, setBlooms, setBrowseData, setCompressedFileSize, setContentType, setCsvEscape, setCsvQuote, setCsvSeparate, setCsvTerminate, setDescription, setDFUFilePartsOnClusters, setDir, setEcl, setExpirationDate, setExpireDays, setExtendedIndexInfo, setFilename, setFilesize, setFileSizeInt64, setFormat, setFromRoxieCluster, setGraphs, setIsCompressed, setIsRestricted, setIsSuperfile, setJobName, setJsonInfo, setKeyType, setMaxRecordSize, setModified, setName, setNodeGroup, setNumParts, setOwner, setPackageID, setPartition, setPathMask, setPercentCompressed, setPersistent, setPrefix, setProtectList, setRecordCount, setRecordCountInt64, setRecordSize, setRecordSizeInt64, setShowFileContent, setStat, setSubfiles, setSuperfiles, setUserPermission, setWuid
    • Constructor Detail

      • DFUFileDetailWrapper

        public DFUFileDetailWrapper​(org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUFileDetail base)
        Create a Data Column Info object from a axis-generated soap class DFUDataColumn.
        Parameters:
        base - the base
      • DFUFileDetailWrapper

        public DFUFileDetailWrapper()
        Create an empty Data Column Info object.
    • Method Detail

      • hasHeader

        public boolean hasHeader()
        Checks for header.
        Returns:
        the hasheader
      • setHasheader

        public void setHasheader​(boolean hasheader)
        Sets the hasheader.
        Parameters:
        hasheader - the hasheader to set
      • getFirstline

        public String getFirstline()
        Gets the firstline.
        Returns:
        the first line of data associated with this file
      • setFirstline

        public void setFirstline​(String firstline)
        Sets the firstline.
        Parameters:
        firstline - - set the first line of data associated with this file
      • getColumns

        public ArrayList<DFUDataColumnWrapper> getColumns()
        Gets the columns.
        Returns:
        the columns for this logical file as defined in dfuGetMetadata or dfuGetDataColumns
      • setColumns

        public void setColumns​(List<DFUDataColumnWrapper> columns)
        Sets the columns.
        Parameters:
        columns - - List of DFUDataColumns
      • setColumns

        public void setColumns​(org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUDataColumn[] childColumns)
        Sets the columns.
        Parameters:
        childColumns - - Array of DFUDataColumn objects
      • getFileType

        public FileFormat getFileType()
        Gets the file type.
        Returns:
        the true FileType for this file, based on complex logic.
      • hasChildDatasets

        public boolean hasChildDatasets()
        Checks for child datasets.
        Returns:
        true if the DFUDataColumns for this file contain items of type Dataset, false otherwise
      • deduceFields

        public EclRecordWrapper deduceFields()
                                      throws Exception
        Deduce fields.
        Returns:
        the calculated DFUDataColumns based on the columns, deduced file type and ecl
        Throws:
        Exception - the exception
      • getRecordFromECL

        public static EclRecordWrapper getRecordFromECL​(String eclRecordDefinition)
                                                 throws Exception
        Gets the record from ECL.
        Parameters:
        eclRecordDefinition - - a RECORD definition, either in RECORD\nSTRING1\nEND; format, or in {STRING1 field} inline format,. handles xpath recordsets and child datasets
        Returns:
        An EclRecordWrapper object holding a collection of the recordsets in the ecl
        Throws:
        Exception - the exception
      • isSprayedCsv

        public boolean isSprayedCsv()
        Checks if is sprayed csv.
        Returns:
        true if this file shows the attributes of having been a sprayed csv , false otherwise
      • hasEcl

        public boolean hasEcl()
        Checks for ecl.
        Returns:
        true if getEcl is populated, false otherwise
      • isFirstRowValidFieldNames

        public boolean isFirstRowValidFieldNames()
        Checks if is first row valid field names.
        Returns:
        true if the data file is a csv, if the first row of data is populated and if the values in that line, when split on the defined field separator, are valid ecl field names. Return false otherwise.
      • isIndex

        public boolean isIndex()
        Checks if is index.
        Returns:
        true, if is index
      • getRecordEcl

        public static EclRecordWrapper getRecordEcl​(String content)
        Gets the record ecl.
        Parameters:
        content - the content
        Returns:
        the record ecl
      • getClusters

        public Set<String> getClusters()