Diff
stringlengths
10
2k
Message
stringlengths
28
159
import java.util.concurrent.atomic.AtomicLong; import org.apache.accumulo.core.client.IteratorSetting.Column; import org.apache.accumulo.core.conf.DefaultConfiguration; import org.apache.hadoop.io.Text; public static final List<Column> COLNAMES = new ArrayList<Column>(); public static final Text CHECK_COLUMN_FAMILY...
Remove this unused method parameter "table".
if (arbitrator.transactionComplete(Constants.BULK_ARBITRATOR_TYPE, txid)) {
Replace all tab characters in this file by sequences of white-spaces.
Set<ByteBuffer> splits = new HashSet<ByteBuffer>(); splits.add(ByteBuffer.wrap("a".getBytes())); splits.add(ByteBuffer.wrap("c".getBytes())); splits.add(ByteBuffer.wrap("z".getBytes())); tpc.proxy().tableOperations_merge(userpass, testtable, ByteBuffer.wrap("b".getBytes()), ByteBuffer.wrap("d".getBy...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/** * This class remains here for backwards compatibility. * @deprecated since 1.4 * @see org.apache.accumulo.core.iterators.user.WholeRowIterator public class WholeRowIterator extends org.apache.accumulo.core.iterators.user.WholeRowIterator {
Remove the literal "false" boolean value.
import org.apache.accumulo.server.master.state.MergeStats; TabletGoalState goal = getGoalState(tls, mergeStats.getMergeInfo()); sendChopRequest(mergeStats.getMergeInfo(), state, tls); sendSplitRequest(mergeStats.getMergeInfo(), state, tls); MergeState update = stats.nextMer...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
File siteFile = new File(SITE_CONF); if (siteFile.exists()) ACC_CONF.addResource(siteFile.toURI().toURL());
5 duplicated blocks of code must be removed.
} else throw new BadArgumentException("Argument must be 'on' or 'off'", fullCommand, fullCommand.indexOf(cl.getArgs()[0]));
Remove this call to "exit" or ensure it is really required.
import java.lang.annotation.Annotation; import org.apache.log4j.Logger; CRYPTO_CIPHER_ALGORITHM_NAME( "crypto.cipher.algorithm.name", "NullCipher", PropertyType.STRING, MASTER_WALOG_CLOSER_IMPLEMETATION("master.walog.closer.implementation", "org.apache.accumulo.server.master.recovery.HadoopLogClos...
Make the "log" logger private static final and rename it to comply with the format "LOG(?:GER)?".
package org.apache.accumulo.core.iterators; public class IterationInterruptedException extends RuntimeException { private static final long serialVersionUID = 1L; public IterationInterruptedException(){ super(); } public IterationInterruptedException(String msg) { super(msg); } }
Return empty string instead.
public void sumAllColumns() throws IOException { TreeMap<Key,Value> tm = new TreeMap<Key,Value>(); tm.put(new Key("r", "count", "a", 1), new Value("1".getBytes())); tm.put(new Key("r", "count", "a", 2), new Value("1".getBytes())); tm.put(new Key("r", "count", "b", 3), new Value("1".getBytes())); t...
Remove this unused private "appendProp" method.
import org.apache.commons.vfs2.FileSystemException; import org.apache.commons.vfs2.impl.VFSClassLoader; FileObject[] createFileSystems(FileObject[] fos) throws FileSystemException { FileObject[] rfos = new FileObject[fos.length]; for (int i = 0; i < fos.length; i++) { if (vfs.canCreateFileSystem(fos[i]...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
if (r.contains(k)) return true;
Remove this call to "exit" or ensure it is really required.
package org.apache.accumulo.core.iterators.aggregation.conf; import java.util.Map; import org.apache.accumulo.core.data.Key; import org.apache.accumulo.core.iterators.aggregation.Aggregator; import org.apache.accumulo.core.iterators.conf.ColumnToClassMapping; public class AggregatorSet extends ColumnToClassMapping<...
Return empty string instead.
import org.apache.log4j.Level; import org.apache.log4j.Logger; Logger.getLogger(GlobalIndexUidAggregator.class).setLevel(Level.OFF);
2 duplicated blocks of code must be removed.
import java.io.IOException; import java.util.Map; private boolean lossy = false; protected static final String LOSSY = "lossy"; private boolean lossy; * * @param lossy * Determines whether to error on failure to decode or ignore and move on VIterator(Iterator<Value> iter, Encoder<V...
Move this variable to comply with Java Code Conventions.
package org.apache.accumulo.trace.thrift;
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
private Throwable ex = null; ex = new Throwable(); log.warn(TabletServerBatchReader.class.getSimpleName() + " not shutdown; did you forget to call close()?", ex);
Either log or rethrow this exception.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
296 duplicated blocks of code must be removed.
import org.apache.accumulo.core.client.BatchWriterConfig; BatchWriter bw = getConnector().createBatchWriter("abc", new BatchWriterConfig());
Remove this unused method parameter "e".
/** * Allows scanning over multiple ranges efficiently. * * @param ranges * specifies the non-overlapping ranges to query */ void setRanges(Collection<Range> ranges); /** * Cleans up and finalizes the scanner */ void close();
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* @deprecated since 1.4, replaced by {@link org.apache.accumulo.core.file.rfile.RFile} * @deprecated since 1.4, replaced by {@link org.apache.accumulo.core.Constants#MAPFILE_EXTENSION}
Either log or rethrow this exception.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.hadoop.fs.Path; ABSOLUTEPATH("absolute path", null, "An absolute filesystem path. The filesystem depends on the property. This is the same as path, but enforces that its root is explicitly specified.") { public boolean isValidFormat(String value) { return new Path(value).isAbsolute(...
Remove this unused private "appendProp" method.
public String hello(); public int add();
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
296 duplicated blocks of code must be removed.
Text rowName = extent.getMetadataEntry(); if (tabletsKeyValues != null && tabletsKeyValues.size() > 0) { datafilesMetadata = new TreeMap<Key,Value>(); for (Entry<Key,Value> entry : tabletsKeyValues.entrySet()) { if (entry.getKey().compareRow(rowName) == 0 && entry.getKey().c...
Remove this unused private "getRootMetadataDataFileEntries" method.
if (arbitrator.transactionComplete(Constants.BULK_ARBITRATOR_TYPE, txid)) {
Either log or rethrow this exception.
* @throws AccumuloSecurityException public abstract String getAuthenticatorClassName() throws AccumuloException, AccumuloSecurityException;
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
import org.apache.accumulo.core.security.Authorizations; BatchScanner bs = getConnector().createBatchScanner("timeout", Authorizations.EMPTY, 2);
Remove this unused method parameter "range".
* Return the formatter for the current table. * @return the formatter class for the current table /** * Return the formatter for the given table. * * @param tableName * the table name * @return the formatter class for the given table */
Do not forget to remove this deprecated code someday.
public static String getAccumuloDynamicClasspathStrings() throws IllegalStateException { public static String getAccumuloClasspathStrings() throws IllegalStateException {
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* <li>{@link AccumuloInputFormat#setConnectorInfo(Job, String, String)}
Either log or rethrow this exception.
import org.apache.accumulo.core.security.Authorizations; checkSplits(REG_TABLE_NAME, NUM_PRE_SPLITS / 2, NUM_PRE_SPLITS * 2); Scanner scanner = getConnector().createScanner(table, Authorizations.EMPTY);
Remove this unused method parameter "range".
import org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException;
Move this constructor to comply with Java Code Conventions.
import org.junit.Assert;
Move this variable to comply with Java Code Conventions.
package org.apache.accumulo.core.file.blockfile; import java.io.DataOutput; import java.io.DataOutputStream; import java.io.IOException; /* * Minimal interface to write a block to a * block based file * */ public interface ABlockWriter extends DataOutput { public long getCompressedSize() throws IOException...
Return empty string instead.
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Rename this generic name to match the regular expression '^[A-Z]$'.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.server.security.SecurityUtil; public class TabletServer extends AbstractMetricsImpl implements org.apache.accumulo.server.tabletserver.metrics.TabletServerMBean { SecurityUtil.serverLogin(); SecurityUtil.serverLogin();
Move this constructor to comply with Java Code Conventions.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import java.util.HashMap; String desc = "This iterator allows ranges of key to be transformed (with the exception of row transformations)."; String bufferDesc = "Maximum buffer size (in accumulo memory spec) to use for buffering keys before throwing a BufferOverflowException. " + "Users should keep this ...
Extract the assignment out of this expression.
conn.securityOperations().createUser("user1", "pass1".getBytes());
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
if (client != null) returnClient(client); if (client != null) returnClient(client);
Remove this call to "exit" or ensure it is really required.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
/** * @deprecated since 1.4 * @use org.apache.accumulo.core.iterators.System.VisibilityFilter **/
Remove this unused private "match" method.
* @deprecated since 1.4, replaced by {@link org.apache.accumulo.core.iterators.Filter} with negate flag set to <tt>true</tt>
Either log or rethrow this exception.
log.debug("mergeInfo overlaps: " + extent + " " + mergeInfo.overlaps(extent)); final TabletStateStore stores[] = { new ZooTabletStateStore(new ZooStore(zroot)), new RootTabletStateStore(instance, systemAuths, this), new MetaDataStateStore(instance, systemAuths, this) };
Use "Integer.toString" instead.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
if (text == null) return null;
Remove this call to "exit" or ensure it is really required.
import org.apache.accumulo.core.client.IteratorSetting; import org.apache.accumulo.core.iterators.user.AgeOffFilter; IteratorSetting setting = new IteratorSetting(10, "ageoff", AgeOffFilter.class.getName()); AgeOffFilter.setTTL(setting, 7 * 24 * 60 * 60 * 1000l); connector.tableOperations(...
Remove this unused method parameter "ex".
* What it writes to the table is row = partition id, column family = term, column qualifier = document id. * * See docs/examples/README.shard for instructions.
1 duplicated blocks of code must be removed.
package org.apache.accumulo.examples.wikisearch.query; import org.apache.accumulo.examples.wikisearch.sample.Results;
Rename "table" which hides the field declared at line 107.
import org.apache.accumulo.core.Constants; rangeStrings.add(new String(Base64.encodeBase64(baos.toByteArray()), Constants.UTF8)); ByteArrayInputStream bais = new ByteArrayInputStream(Base64.decodeBase64(rangeString.getBytes(Constants.UTF8))); String col = new String(Base64.encodeBase64(TextUtil.getB...
Move this variable to comply with Java Code Conventions.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
private static void print(String fmt, Object... args) { System.out.println(String.format(fmt, args)); } /** * @param args * @throws TException */ public static void main(String[] args) throws Exception { if (args.length != 2) { System.err.println(String.format("Usage: accumulo %s ho...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.iterators.user.IntersectingIterator.TermSource; for (TermSource ts : this.sources) { ts.seekColfams = indexColfSet; } super.seek(range, null, true);
2 duplicated blocks of code must be removed.
@Test(timeout = 2 * 60 * 1000)
Either log or rethrow this exception.
import org.apache.accumulo.core.security.CredentialHelper; import org.apache.accumulo.core.security.thrift.AuthInfo; import org.apache.accumulo.core.security.thrift.Credential; import org.apache.accumulo.core.security.thrift.tokens.PasswordToken; import org.apache.accumulo.core.security.thrift.tokens.SecurityToken; @...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.server.security.SecurityUtil; SecurityUtil.serverLogin();
Move this variable to comply with Java Code Conventions.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.core.client.AccumuloSecurityException; public void setAccumuloConfigs(Job job) throws AccumuloSecurityException { AccumuloInputFormat.setConnectorInfo(job, principal, getToken()); AccumuloOutputFormat.setConnectorInfo(job, principal, getToken());
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
if (stat == null) lockAsync(myLock, lw); if (!lid.node.equals(lockNode)) return false; if (!lid.node.equals(lockNode)) return false; if (zc.get(path + "/" + lockNode, stat) != null) return stat.getEphemeralOwner();
Remove this call to "exit" or ensure it is really required.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Either log or rethrow this exception.
ServerConfiguration conf = new ServerConfiguration(instance); org.apache.accumulo.core.util.TableDiskUsage.printDiskUsage(conf.getConfiguration(), Arrays.asList(args), fs, conn);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.metadata.RootTable;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
assertEquals(k.getRow(), new Text(String.format("%09x", count + 1))); assertEquals(new String(v.get()), String.format("%09x", count)); if (args.length != 3) { throw new IllegalArgumentException("Usage : " + MRTester.class.getName() + " <user> <pass> <ta...
Either log or rethrow this exception.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import com.beust.jcommander.JCommander; import com.beust.jcommander.Parameter; static class Opts { @Parameter(names="--rows", description="rows", required = true) int rows = 0; @Parameter(names="--cols", description="cols") int cols = 1; @Parameter(names="--threads", description="threads") in...
Remove this unused private "appendProp" method.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
@Override public void cancelCompaction(String tableName) throws AccumuloSecurityException, TableNotFoundException, AccumuloException { String tableId = Tables.getTableId(instance, tableName); List<ByteBuffer> args = Arrays.asList(ByteBuffer.wrap(tableId.getBytes())); Map<String,String> opts = ...
Rename this package name to match the regular expression '^[a-z]+(\.[a-z][a-z0-9]*)*$'.
package org.apache.accumulo.server.test.randomwalk.shard; import java.util.Properties; import java.util.Random; import org.apache.accumulo.server.test.randomwalk.State; import org.apache.accumulo.server.test.randomwalk.Test; public class Flush extends Test{ @Override public void visit(State state, Properties pro...
Return empty string instead.
import org.apache.accumulo.fate.zookeeper.IZooReaderWriter; import org.apache.accumulo.fate.zookeeper.ZooUtil.NodeExistsPolicy; import org.apache.accumulo.fate.zookeeper.ZooUtil.NodeMissingPolicy; SortedSet<Column> columns, boolean skipStartRow, int size) throws AccumuloSecurityException {
Remove this call to "exit" or ensure it is really required.
import org.apache.accumulo.core.client.BatchWriterConfig; BatchWriter bw = conn.createBatchWriter(table, new BatchWriterConfig());
Remove this unused method parameter "e".
static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(ThriftMetrics.class); private static final String METRICS_PREFIX = "thrift"; private static ObjectName OBJECT_NAME = null; public ThriftMetrics(String serverName, String threadName) { super(); reset(); try { ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(TabletServerScanMetrics.class); public static final String METRICS_PREFIX = "tserver.scan"; public static ObjectName OBJECT_NAME = null; public TabletServerScanMetrics() { super(); reset(); try { OBJECT_NA...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
UUID uuid = null; try { uuid = UUID.fromString(scanner); } catch (IllegalArgumentException e) { throw new UnknownScanner(e.getMessage()); } if (scannerCache.asMap().remove(uuid) == null) { throw new UnknownScanner("Scanner never existed or no longer exists"); } } cat...
Either log or rethrow this exception.
import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper; final protected InstanceTokenWrapper auths; public MetaDataStateStore(Instance instance, InstanceTokenWrapper auths, CurrentState state) {
Immediately return this expression instead of assigning it to the temporary variable "ret".
if (val == Level.DEBUG_INT + 100) return Level.DEBUG;
Remove this call to "exit" or ensure it is really required.
import org.apache.accumulo.server.cli.ClientOpts; System.out.println(locationState + " is " + state + " #walogs:" + locationState.walogs.size());
Replace this use of System.out or System.err by a logger.
import org.apache.hadoop.filecache.DistributedCache; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.permission.FsAction; import org.apache.hadoop.fs.permission.FsPermissi...
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
import java.nio.charset.Charset; private static final Charset utf8 = Charset.forName("UTF8"); if (!shellState.getConnector().securityOperations().authenticateUser(currentUser, oldPassword.getBytes(utf8))) byte[] pass = password.getBytes(utf8);
Move this variable to comply with Java Code Conventions.
import java.util.ArrayList; import java.util.List; import org.apache.accumulo.core.cli.ClientOnRequiredTable; import com.beust.jcommander.Parameter; static class Opts extends ClientOnRequiredTable { @Parameter(description="<split> { <split> ... } ") List<String> splits = new ArrayList<String>(); } pub...
Remove this unused private "appendProp" method.
Process initProcess = exec(Initialize.class, "--instance-name", INSTANCE_NAME, "--password", rootPassword); int ret = initProcess.waitFor(); if (ret != 0) { throw new RuntimeException("Initialize process returned " + ret); }
Define and throw a dedicated exception instead of using a generic one.
@SuppressWarnings("all") public class LogFile implements org.apache.thrift.TBase<LogFile, LogFile._Fields>, java.io.Serializable, Cloneable {
13 duplicated blocks of code must be removed.
import org.apache.accumulo.core.data.Value; /** * @deprecated since 1.4 */
Either log or rethrow this exception.
SimpleGarbageCollector gc = new SimpleGarbageCollector();
Remove this unused method parameter "hostname".
super.seek(range, columnFamilies, inclusive);
Remove the literal "false" boolean value.
boolean transactionComplete(String type, long tid) throws Exception;
Either log or rethrow this exception.
package org.apache.accumulo.core.client; import org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException; /** * Thrown when the table specified doesn't exist when it was expected to */ public class TableNotFoundException extends Exception { /** * Exception to throw if an operation is attem...
Return empty string instead.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.server.cli.ClientOpts; private static TreeSet<RowColumn> scanAll(ClientOpts opts, Text t) throws Exception { Connector conn = opts.getConnector(); scanner.setBatchSize(opts.scanBatchSize); private static long scrambleDeleteHalfAndCheck(ClientOpts opts, Text t, Set<RowColumn> rows)...
Remove this call to "exit" or ensure it is really required.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.core.iterators.user.WholeRowIterator;
Remove the literal "false" boolean value.
package org.apache.accumulo.server.cli; import org.apache.accumulo.core.client.Instance; import org.apache.accumulo.core.client.ZooKeeperInstance; import org.apache.accumulo.core.client.mock.MockInstance; import org.apache.accumulo.server.client.HdfsZooInstance; public class ClientOpts extends org.apache.accumulo.cor...
Remove this unused private "appendProp" method.