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, calcHashValueSize
BOOLEAN_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, printBitTable
config, getConfiguration, getGlobalProperty, getProperty, getProperty, getStatisticsProperty, loadFormatImpl, selfconfig, setGlobalProperty, setProperty, setProperty, setStatisticsProperty, setStatisticsProperty
private 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 HashFunction
init
in class AbstractHashFunction
ConfigurationException
HashException
public int calcBucketID(byte[] aryKeys) throws HashException
calcBucketID
in interface HashFunction
calcBucketID
in class AbstractHashFunction
HashException
public int calcHashValue() throws HashException
calcHashValue
in interface HashFunction
calcHashValue
in class AbstractHashFunction
HashException
2005-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