Package io.trino.plugin.accumulo
Class AccumuloTableManager
- java.lang.Object
-
- io.trino.plugin.accumulo.AccumuloTableManager
-
public class AccumuloTableManager extends Object
This class is a light wrapper for Accumulo's Connector object. It will perform the given operation, or throw an exception if an Accumulo- or ZooKeeper-based error occurs.
-
-
Constructor Summary
Constructors Constructor Description AccumuloTableManager(org.apache.accumulo.core.client.Connector connector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateAccumuloTable(String table)voiddeleteAccumuloTable(String tableName)voidensureNamespace(String schema)Ensures the given Accumulo namespace exist, creating it if necessarybooleanexists(String table)voidrenameAccumuloTable(String oldName, String newName)voidsetIterator(String table, org.apache.accumulo.core.client.IteratorSetting setting)voidsetLocalityGroups(String tableName, Map<String,Set<org.apache.hadoop.io.Text>> groups)
-
-
-
Method Detail
-
ensureNamespace
public void ensureNamespace(String schema)
Ensures the given Accumulo namespace exist, creating it if necessary- Parameters:
schema- Trino schema (Accumulo namespace)
-
exists
public boolean exists(String table)
-
createAccumuloTable
public void createAccumuloTable(String table)
-
setLocalityGroups
public void setLocalityGroups(String tableName, Map<String,Set<org.apache.hadoop.io.Text>> groups)
-
setIterator
public void setIterator(String table, org.apache.accumulo.core.client.IteratorSetting setting)
-
deleteAccumuloTable
public void deleteAccumuloTable(String tableName)
-
-