org.apache.accumulo.examples.simple.filedata
Class FileDataQuery
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDataQuery
public FileDataQuery(String instanceName,
String zooKeepers,
String user,
AuthenticationToken token,
String tableName,
Authorizations auths)
throws AccumuloException,
AccumuloSecurityException,
TableNotFoundException
- Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
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.