Package org.apache.accumulo.server.master.tableOps

Examples of org.apache.accumulo.server.master.tableOps.CompactRange


          List<IteratorSetting> iterators = IteratorUtil.decodeIteratorSettings(ByteBufferUtil.toBytes(arguments.get(3)));
         
          if (!security.canCompact(c, tableId))
            throw new ThriftSecurityException(c.getPrincipal(), SecurityErrorCode.PERMISSION_DENIED);
         
          fate.seedTransaction(opid, new TraceRepo<Master>(new CompactRange(tableId, startRow, endRow, iterators)), autoCleanup);
          break;
        }
        case COMPACT_CANCEL: {
          String tableId = ByteBufferUtil.toString(arguments.get(0));
         
View Full Code Here


          byte[] endRow = ByteBufferUtil.toBytes(arguments.get(2));
         
          verify(c, tableId, TableOperation.COMPACT,
              check(c, tableId, TablePermission.WRITE) || check(c, tableId, TablePermission.ALTER_TABLE) || check(c, SystemPermission.ALTER_TABLE));
         
          fate.seedTransaction(opid, new TraceRepo<Master>(new CompactRange(tableId, startRow, endRow)), autoCleanup);
          break;
        }
        default:
          throw new UnsupportedOperationException();
      }
View Full Code Here

          List<IteratorSetting> iterators = IteratorUtil.decodeIteratorSettings(ByteBufferUtil.toBytes(arguments.get(3)));
         
          if (!security.canCompact(c, tableId))
            throw new ThriftSecurityException(c.getPrincipal(), SecurityErrorCode.PERMISSION_DENIED);
         
          fate.seedTransaction(opid, new TraceRepo<Master>(new CompactRange(tableId, startRow, endRow, iterators)), autoCleanup);
          break;
        }
        case COMPACT_CANCEL: {
          String tableId = ByteBufferUtil.toString(arguments.get(0));
         
View Full Code Here

          byte[] endRow = ByteBufferUtil.toBytes(arguments.get(2));
         
          verify(c, tableId, TableOperation.COMPACT,
              check(c, tableId, TablePermission.WRITE) || check(c, tableId, TablePermission.ALTER_TABLE) || check(c, SystemPermission.ALTER_TABLE));
         
          fate.seedTransaction(opid, new TraceRepo<Master>(new CompactRange(tableId, startRow, endRow)), autoCleanup);
          break;
        }
        default:
          throw new UnsupportedOperationException();
      }
View Full Code Here

          byte[] endRow = ByteBufferUtil.toBytes(arguments.get(2));
         
          verify(c, tableId, TableOperation.COMPACT,
              check(c, tableId, TablePermission.WRITE) || check(c, tableId, TablePermission.ALTER_TABLE) || check(c, SystemPermission.ALTER_TABLE));
         
          fate.seedTransaction(opid, new TraceRepo<Master>(new CompactRange(tableId, startRow, endRow)), autoCleanup);
          break;
        }
        default:
          throw new UnsupportedOperationException();
      }
View Full Code Here

          List<IteratorSetting> iterators = IteratorUtil.decodeIteratorSettings(ByteBufferUtil.toBytes(arguments.get(3)));
         
          if (!security.canCompact(c, tableId))
            throw new ThriftSecurityException(c.getPrincipal(), SecurityErrorCode.PERMISSION_DENIED);
         
          fate.seedTransaction(opid, new TraceRepo<Master>(new CompactRange(tableId, startRow, endRow, iterators)), autoCleanup);
          break;
        }
        case COMPACT_CANCEL: {
          String tableId = ByteBufferUtil.toString(arguments.get(0));
         
View Full Code Here

          byte[] endRow = ByteBufferUtil.toBytes(arguments.get(2));
         
          verify(c, tableId, TableOperation.COMPACT,
              check(c, tableId, TablePermission.WRITE) || check(c, tableId, TablePermission.ALTER_TABLE) || check(c, SystemPermission.ALTER_TABLE));
         
          fate.seedTransaction(opid, new TraceRepo<Master>(new CompactRange(tableId, startRow, endRow)), autoCleanup);
          break;
        }
        default:
          throw new UnsupportedOperationException();
      }
View Full Code Here

          byte[] endRow = ByteBufferUtil.toBytes(arguments.get(2));
         
          verify(c, tableId, TableOperation.COMPACT,
              check(c, tableId, TablePermission.WRITE) || check(c, tableId, TablePermission.ALTER_TABLE) || check(c, SystemPermission.ALTER_TABLE));
         
          fate.seedTransaction(opid, new TraceRepo<Master>(new CompactRange(tableId, startRow, endRow)), autoCleanup);
          break;
        }
        default:
          throw new UnsupportedOperationException();
      }
View Full Code Here

          byte[] endRow = ByteBufferUtil.toBytes(arguments.get(2));
         
          verify(c, tableId, TableOperation.COMPACT,
              check(c, tableId, TablePermission.WRITE) || check(c, tableId, TablePermission.ALTER_TABLE) || check(c, SystemPermission.ALTER_TABLE));
         
          fate.seedTransaction(opid, new TraceRepo<Master>(new CompactRange(tableId, startRow, endRow)), autoCleanup);
          break;
        }
        default:
          throw new UnsupportedOperationException();
      }
View Full Code Here

TOP

Related Classes of org.apache.accumulo.server.master.tableOps.CompactRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.