Example usage for org.apache.solr.update.processor Lookup3Signature getSignature

List of usage examples for org.apache.solr.update.processor Lookup3Signature getSignature

Introduction

In this page you can find the example usage for org.apache.solr.update.processor Lookup3Signature getSignature.

Prototype

@Override
    public byte[] getSignature() 

Source Link

Usage

From source file:net.yacy.cora.document.analysis.EnhancedTextProfileSignature.java

License:Apache License

public static long getSignatureLong(Lookup3Signature sig) {
    byte[] hash = sig.getSignature();
    long l = 0;// www  .  j av  a  2 s  .co  m
    for (int i = 0; i < 8; i++)
        l = (l << 8) + (hash[i] & 0xff);
    return l;
}