List of usage examples for org.apache.hadoop.io Closeable interface-usage
From source file org.apache.nutch.searcher.HitContent.java
/** Service that returns the content of a hit. */ public interface HitContent extends Closeable { /** Returns the content of a hit document. */ byte[] getContent(HitDetails details) throws IOException; /** Returns the ParseData of a hit document. */
From source file org.apache.nutch.searcher.HitInlinks.java
/** Service that returns information about incoming links to a hit. */ public interface HitInlinks extends Closeable { /** Returns the anchors of a hit document. */ String[] getAnchors(HitDetails details) throws IOException; /** Return the inlinks of a hit document. */
From source file org.apache.nutch.searcher.NutchBean.java
/** * One stop shopping for search-related functionality. * @version $Id: NutchBean.java,v 1.19 2005/02/07 19:10:08 cutting Exp $ */ public class NutchBean implements Searcher, HitDetailer, HitSummarizer, HitContent, HitInlinks, DistributedSearch.Protocol, Closeable {
From source file org.apache.nutch.searcher.Searcher.java
/** Service that searches. */ public interface Searcher extends Closeable { /** Return the top-scoring hits for a query. */ Hits search(Query query, int numHits, String dedupField, String sortField, boolean reverse) throws IOException; Hits search(Query query, int numHits, int searcherMaxHits, int maxHitsPerDup, String dedupField,
From source file voldemort.store.readonly.mr.AvroStoreBuilderReducerPerBucket.java
/** * Take key md5s and value bytes and build a Avro read-only store from these * values */ public class AvroStoreBuilderReducerPerBucket implements Reducer<AvroKey<ByteBuffer>, AvroValue<ByteBuffer>, Text, Text>, JobConfigurable, Closeable {