public class CRC32HashFunctionImpl extends AbstractHashFunction
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
aryKeys |
private int |
BLOCKS |
(package private) int |
intDataSetsPerBucket |
private boolean |
isFirstHashValue |
(package private) long |
longHashValue |
private java.util.zip.CRC32 |
objCRC32 |
calcBucketID, calcBucketIDSize, calcHashValue, calcHashValueSizeBOOLEAN_DEFAULT, DOUBLE_DEFAULT, FORMAT_IMPL, INT_DEFAULT, LONG_DEFAULT, objConf, objConfCategory, objFormat, strBackupConfFile, STRING_DEFAULT| Constructor and Description |
|---|
CRC32HashFunctionImpl()
Creates a new instance of CRC32HashFunctionImpl
|
| Modifier and Type | Method and Description |
|---|---|
int |
calcBucketID(byte[] aryKeys) |
int |
calcHashValue() |
void |
init(java.util.Properties objProperties) |
calcBufferSize, calcKeySuffixes, clear, getInt, getIntAsByteArray, getLongAsByteArray, getOriginalHashValue, getProperties, printBitTableconfig, getConfiguration, getGlobalProperty, getProperty, getProperty, getStatisticsProperty, loadFormatImpl, selfconfig, setGlobalProperty, setProperty, setProperty, setStatisticsProperty, setStatisticsPropertyprivate int BLOCKS
private java.util.zip.CRC32 objCRC32
private boolean isFirstHashValue
private byte[] aryKeys
long longHashValue
int intDataSetsPerBucket
public CRC32HashFunctionImpl()
public void init(java.util.Properties objProperties)
throws ConfigurationException,
HashException
init in interface HashFunctioninit in class AbstractHashFunctionConfigurationExceptionHashExceptionpublic int calcBucketID(byte[] aryKeys)
throws HashException
calcBucketID in interface HashFunctioncalcBucketID in class AbstractHashFunctionHashExceptionpublic int calcHashValue()
throws HashException
calcHashValue in interface HashFunctioncalcHashValue in class AbstractHashFunctionHashException2005-2013 Marco Büchler, Natural Language Processing Group, University of Leipzig, Germany. 2013-2016 Marco Büchler, Georg August University Göttingen, Göttingen, Germany