org.apache.accumulo.examples.simple.filedata
Class FileDataQuery

java.lang.Object
  extended by org.apache.accumulo.examples.simple.filedata.FileDataQuery

public class FileDataQuery
extends Object

Retrieves file data based on the SHA1 hash of the file. Used by the Viewer. See README.dirlist for instructions.


Constructor Summary
FileDataQuery(String instanceName, String zooKeepers, String user, AuthenticationToken token, String tableName, Authorizations auths)
           
 
Method Summary
 ChunkInputStream getData(String hash)
           
 List<Map.Entry<Key,Value>> getLastRefs()
           
 String getSomeData(String hash, int numBytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDataQuery

public FileDataQuery(String instanceName,
                     String zooKeepers,
                     String user,
                     AuthenticationToken token,
                     String tableName,
                     Authorizations auths)
              throws AccumuloException,
                     AccumuloSecurityException,
                     TableNotFoundException
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
Method Detail

getLastRefs

public List<Map.Entry<Key,Value>> getLastRefs()

getData

public ChunkInputStream getData(String hash)
                         throws IOException
Throws:
IOException

getSomeData

public String getSomeData(String hash,
                          int numBytes)
                   throws IOException
Throws:
IOException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.