Class CRCInfo
Object
io.delta.kernel.internal.checksum.CRCInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCRCInfo(long version, Metadata metadata, Protocol protocol, long tableSizeBytes, long numFiles, Optional<String> txnId, Optional<Set<DomainMetadata>> domainMetadata, Optional<FileSizeHistogram> fileSizeHistogram) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfromColumnarBatch(long version, ColumnarBatch batch, int rowId, String crcFilePath) TheFileSizeHistogramstored in this CRCInfo.TheMetadatastored in this CRCInfo.longTheProtocolstored in this CRCInfo.longgetTxnId()longThe version of the Delta table that this CRCInfo represents.inthashCode()toRow()Encode as aRowobject with the schemaCRC_FILE_SCHEMA.
-
Field Details
-
CRC_FILE_SCHEMA
-
CRC_FILE_READ_SCHEMA
-
-
Constructor Details
-
CRCInfo
public CRCInfo(long version, Metadata metadata, Protocol protocol, long tableSizeBytes, long numFiles, Optional<String> txnId, Optional<Set<DomainMetadata>> domainMetadata, Optional<FileSizeHistogram> fileSizeHistogram)
-
-
Method Details
-
fromColumnarBatch
public static Optional<CRCInfo> fromColumnarBatch(long version, ColumnarBatch batch, int rowId, String crcFilePath) -
getVersion
public long getVersion()The version of the Delta table that this CRCInfo represents. -
getMetadata
TheMetadatastored in this CRCInfo. -
getProtocol
TheProtocolstored in this CRCInfo. -
getNumFiles
public long getNumFiles() -
getTableSizeBytes
public long getTableSizeBytes() -
getTxnId
-
getDomainMetadata
-
getFileSizeHistogram
TheFileSizeHistogramstored in this CRCInfo. -
toRow
Encode as aRowobject with the schemaCRC_FILE_SCHEMA.- Returns:
Rowobject with the schemaCRC_FILE_SCHEMA
-
hashCode
public int hashCode() -
equals
-