Class BvParameters
- All Implemented Interfaces:
DescriptorParameters,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for BvParameters.static interfaceInterface representing BvGenerator implementation constructorstatic enumFingerprint textual representation. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BinaryVectors.EndiannessDefault endianness of packing operations.static final intDefault length (bit count).static final BvParameters.StringFormatDefault String format. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with default values.BvParameters(BvParameters.Builder builder) Constructor based on a builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic BvParameters.BuilderConstruct a builder for this parameter class, initialized to default.Return the represented descriptor generator.Endianness of packing operations.intReturns represented fingerprint length (bit count) setting.Returns represented string format.toString()
-
Field Details
-
DEFAULT_LENGTH
public static final int DEFAULT_LENGTHDefault length (bit count).- See Also:
-
DEFAULT_STRING_FORMAT
Default String format. -
DEFAULT_ENDIANNESS
Default endianness of packing operations.
-
-
Constructor Details
-
BvParameters
Constructor based on a builder.- Parameters:
builder- Builder which current state will be represented.
-
BvParameters
public BvParameters()Construct with default values.
-
-
Method Details
-
getDescriptorGenerator
Description copied from interface:DescriptorParametersReturn the represented descriptor generator.Please note that certain descriptors might provide multiple
DescriptorGeneratorimplementations for different descriptor representations. (Consider structure based fingerprints feature list/feature counts/folded finite binary vector representations.) Such different descriptor generators might be exposed through their parameters object as multiple factory methods.- Specified by:
getDescriptorGeneratorin interfaceDescriptorParameters- Returns:
- Associated generator
-
toString
-
createNewBuilder
Construct a builder for this parameter class, initialized to default.- Returns:
- Builder initialized to default settings
-
getLength
public int getLength()Returns represented fingerprint length (bit count) setting.Note that length is positive and multiply of 64 (bitcount of long).
- Returns:
- Fingerprint length
-
getStringFormat
Returns represented string format.- Returns:
- String format used when converting descriptors to/from strings
-
getEndianness
Endianness of packing operations.Binary vectors (fingerprints) represent a fixed number of bits identified by bit indices. The same fingerprint can be represented as a binary string, int, long or byte array. The first bit (having index 0), always maps to the first element from each of the packed array representations. Further mapping is determined by the endianness parameter.
- Returns:
- Endianness of packing operations.
-