Class 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 Detail

      • AccumuloTableManager

        @Inject
        public AccumuloTableManager​(org.apache.accumulo.core.client.Connector connector)
    • 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)
      • renameAccumuloTable

        public void renameAccumuloTable​(String oldName,
                                        String newName)