Package 'RcppFarmHash'

Title: Interface to the Google 'FarmHash' Family of Hash Functions
Description: The Google 'FarmHash' family of hash functions is used by the Google 'BigQuery' data warehouse via the 'FARM_FINGERPRINT' function. This package permits to calculate these hash digest fingerprints directly from R, and uses the included 'FarmHash' files written by G. Pike and copyrighted by Google, Inc.
Authors: Dirk Eddelbuettel
Maintainer: Dirk Eddelbuettel <[email protected]>
License: GPL (>= 2)
Version: 0.0.3
Built: 2024-06-26 04:28:10 UTC
Source: https://github.com/eddelbuettel/rcppfarmhash

Help Index


Interface to the Google 'FarmHash' Family of Hash Functions

Description

The Google 'FarmHash' family of hash functions is used by the Google 'BigQuery' data warehouse via the 'FARM_FINGERPRINT' function. This package permits to calculate these hash digest fingerprints directly from R, and uses the included 'FarmHash' files written by G. Pike and copyrighted by Google, Inc.

Package Content

Index of help topics:

RcppFarmHash-package    Interface to the Google 'FarmHash' Family of
                        Hash Functions
farmhash                Compute a 'FarmHash' digest for a vector of
                        strings

Maintainer

Dirk Eddelbuettel <[email protected]>

Author(s)

Dirk Eddelbuettel


Compute a 'FarmHash' digest for a vector of strings

Description

Compute a 'FarmHash' digest for a vector of strings

Usage

farmhash(sv)

Arguments

sv

Vector of strings for which a hash digest is requested

Value

A vector of integer64 values (using the bit64 package to ‘decode’ the appropriate binary payload from a numeric vector).

Examples

if (requireNamespace("bit64", quietly=TRUE)) {
   suppressMessages(library(bit64))
}
farmhash(c("foo", "bar", "baz"))