org.apache.accumulo.test.functional
public abstract class FunctionalTest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FunctionalTest.TableSetup |
Constructor and Description |
---|
FunctionalTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
bulkImport(org.apache.hadoop.fs.FileSystem fs,
String table,
String dir) |
protected void |
checkRFiles(String tableName,
int minTablets,
int maxTablets,
int minRFiles,
int maxRFiles)
A utility function that checks that each tablet has an expected number of rfiles.
|
protected void |
checkSplits(String table,
int min,
int max)
A utility method for use by functional test that ensures a tables has between min and max split points inclusive.
|
abstract void |
cleanup() |
protected Connector |
getConnector() |
abstract Map<String,String> |
getInitialConfig() |
protected Instance |
getInstance() |
protected String |
getPrincipal() |
abstract List<FunctionalTest.TableSetup> |
getTablesToCreate() |
protected AuthenticationToken |
getToken() |
static void |
main(String[] args) |
static Map<String,String> |
parseConfig(String... perTableConfigs) |
abstract void |
run() |
protected void |
setInstanceName(String instanceName) |
protected void |
setPrincipal(String princ) |
protected void |
setToken(AuthenticationToken token) |
void |
setup() |
protected void setPrincipal(String princ)
protected String getPrincipal()
protected void setToken(AuthenticationToken token)
protected AuthenticationToken getToken()
protected Connector getConnector() throws AccumuloException, AccumuloSecurityException
protected Instance getInstance()
protected void setInstanceName(String instanceName)
public abstract List<FunctionalTest.TableSetup> getTablesToCreate()
protected void checkSplits(String table, int min, int max) throws Exception
Exception
protected void checkRFiles(String tableName, int minTablets, int maxTablets, int minRFiles, int maxRFiles) throws Exception
Exception
protected void bulkImport(org.apache.hadoop.fs.FileSystem fs, String table, String dir) throws Exception
Exception
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.