org.apache.solr.update.processor
Class TextProfileSignature

java.lang.Object
  extended by org.apache.solr.update.processor.Signature
      extended by org.apache.solr.update.processor.MD5Signature
          extended by org.apache.solr.update.processor.TextProfileSignature

public class TextProfileSignature
extends MD5Signature

This implementation is copied from Apache Nutch.

An implementation of a page signature. It calculates an MD5 hash of a plain text "profile" of a page.

The algorithm to calculate a page "profile" takes the plain text version of a page and performs the following steps:

This list is then submitted to an MD5 hash calculation.


Field Summary
 
Fields inherited from class org.apache.solr.update.processor.MD5Signature
log
 
Constructor Summary
TextProfileSignature()
           
 
Method Summary
 void add(String content)
           
 byte[] getSignature()
           
 void init(SolrParams params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextProfileSignature

public TextProfileSignature()
Method Detail

init

public void init(SolrParams params)
Overrides:
init in class Signature

getSignature

public byte[] getSignature()
Overrides:
getSignature in class MD5Signature

add

public void add(String content)
Overrides:
add in class MD5Signature


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.