Java programming to cut files with hash method
Hash is usually translated as "hash" or directly transliterated as "hash", Is to input any length (also known as pre image) is transformed into a fixed length output through the hash algorithm, which is the hash value. This transformation is a compression mapping, that is, the space of the hash value is usually much smaller than the input space, and different inputs may be hashed into the same output, so it is impossible to uniquely determine the input value from the hash value. In short, it is one A function that compresses a message of any length to a message digest of a fixed length.
If there is a large data file (such as URL or IP or word per line) in G, it needs to be segmented before processing. The common segmentation method is directly segmented according to the number of data pieces, and each file is similar in size.
But sometimes you need to put the same data in the same file. You can use hash segmentation.
summary
The above is all about cutting files with hash method in Java programming. I hope it will be helpful to you. Interested friends can continue to refer to other related topics on this site. If there are deficiencies, please leave a message to point out.