Diff stringlengths 10 2k | Message stringlengths 28 159 |
|---|---|
if (parentChildren.get(span.parentId) == null)
parentChildren.put(span.parentId, new ArrayList<Long>());
if (root == null || root.isEmpty())
return visited;
if (rootSpan == null)
return visited;
if (visited.contains(node.spanId))
return; | 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 ... | Remove this unused private "match" method. |
e.setTableInfo(Tables.getPrintableTableInfoFromId(instance, scanState.tableName.toString())); | Either log or rethrow this exception. |
import org.apache.accumulo.cloudtrace.instrument.Span;
import org.apache.accumulo.cloudtrace.instrument.Trace; | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import org.apache.accumulo.core.security.tokens.AccumuloToken;
import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper;
List<KeyExtent> candidates = findTablets(!opts.selectFarTablets, opts.getAccumuloToken(), opts.tableName, instance, locations);
List<String> files = getTabletFiles(opts.getAccum... | Immediately return this expression instead of assigning it to the temporary variable "ret". |
import org.apache.accumulo.server.zookeeper.IZooReaderWriter;
IZooReaderWriter zoo = ZooReaderWriter.getInstance();
IZooReaderWriter zoo = ZooReaderWriter.getInstance();
ZooReaderWriter.getRetryingInstance()), 4); | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
Scanner scanner = conn.createScanner(Constants.METADATA_TABLE_NAME, Authorizations.EMPTY); | Remove this unused method parameter "range". |
byte typeBytes[] = type.name().getBytes(); | Remove this unused private "appendProp" method. |
import org.apache.accumulo.server.fs.VolumeManager.FileType;
String[] parts = log.split("/", 2); // "host:port/filename"
Path finished = new Path(fs.getFullPath(FileType.RECOVERY, parts[parts.length - 1]), "finished"); | Remove this unused private "FileType" constructor. |
import org.apache.accumulo.core.cli.ClientOnRequiredTable;
import com.beust.jcommander.Parameter;
static class Opts extends ClientOnRequiredTable {
@Parameter(names="--inputDir", required=true)
String inputDir;
@Parameter(names="--workDir", required=true)
String workDir;
}
Opts opts = new Op... | Remove this unused private "appendProp" method. |
@Deprecated | Return empty string instead. |
import org.apache.accumulo.core.security.thrift.tokens.SecurityToken;
SecurityToken token;
MockUser(String principal, SecurityToken token, Authorizations auths) {
this.name = principal;
this.token = token.clone(); | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
partitions.add(decode ? new Text(Base64.decodeBase64(line.getBytes())) : new Text(line)); | 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 ... | Move this constructor to comply with Java Code Conventions. |
import java.util.concurrent.TimeUnit;
BatchWriter bw = getConnector().createBatchWriter("bwlt", new BatchWriterConfig().setMaxLatency(2000, TimeUnit.MILLISECONDS)); | Remove this call to "exit" or ensure it is really required. |
package org.apache.accumulo.server.test;
import java.io.IOException;
import java.util.Arrays;
import java.util.Random;
import org.apache.accumulo.core.data.Key;
import org.apache.accumulo.core.data.Value;
import org.apache.accumulo.core.file.map.MyMapFile;
import org.apache.accumulo.core.file.map.MyMapFile.Writer;
im... | 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... | Immediately return this expression instead of assigning it to the temporary variable "r". |
*
*
*
*
*
*
*
*
| 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 ... | Remove this unused private "appendProp" method. |
if (result != null)
return result; | 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... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import org.apache.accumulo.core.client.Connector;
import org.apache.accumulo.minicluster.MiniAccumuloConfig;
import org.junit.Test;
public class BatchScanSplitIT extends MacTest {
public void configure(MiniAccumuloConfig cfg) {
cfg.setSiteConfig(Collections.singletonMap(Property.TSERV_MAJC_DELAY.getKey(), "0"));
... | Use "Long.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... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import org.apache.accumulo.core.security.thrift.SecurityErrorCode; | 1 duplicated blocks of code must be removed. |
import org.apache.accumulo.core.security.tokens.TokenHelper;
import org.apache.hadoop.filecache.DistributedCache;
import org.apache.hadoop.fs.Path;
* <p>
* <b>WARNING:</b> The serialized token is stored in the configuration and shared with all MapReduce tasks. It is BASE64 encoded to provide a charset safe
* c... | Define and throw a dedicated exception instead of using a generic one. |
System.out.printf("inserted %,d in %,d %,d %,6.2f%n", (numRows * numCols), (t2 - t1), nm.size(), rate((numRows * numCols), (t2 - t1)));
System.out.printf("%d %,d %,d %,d %,d %,6.2f%n", Thread.currentThread().getId(), (t2 - t1), t1, t2, count, rate(count, (t2 - t1))); | Use isEmpty() to check whether the collection is empty or not. |
* 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. |
oldPassword = shellState.readMaskedLine("Enter current password for '" + currentUser + "': ", '*');
password = shellState.readMaskedLine("Enter new password for '" + user + "': ", '*');
passwordConfirm = shellState.readMaskedLine("Please confirm new password for '" + user + "': ", '*'); | Either log or rethrow this exception. |
import org.apache.accumulo.core.security.tokens.SecurityToken;
public void initializeSecurity(InstanceTokenWrapper credentials, SecurityToken token) throws AccumuloSecurityException {
public boolean authenticateUser(SecurityToken token) {
public void createUser(SecurityToken token) throws AccumuloSecurityExceptio... | Either log or rethrow this exception. |
BatchWriter bw = conn.createBatchWriter(MetadataTable.NAME, new BatchWriterConfig());
bw.addMutation(MetadataTable.createDeleteMutation(MetadataTable.ID, "/" + fs.getPath().getName()));
if (mergeInfo.getOperation().equals(Operation.MERGE) && tableId.equals(MetadataTable.ID)) { | Use "Long.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 (cl.hasOption("?"))
throw new ParseException("help requested");
.equalsIgnoreCase("stop"))))
throw new ParseException("Incorrect arguments");
if (cl == null || !cl.hasOption("?"))
log.error(e, e);
if (cl != null && cl.hasOption("?"))
log.info(str.toString()... | Remove this call to "exit" or ensure it is really required. |
import jline.console.ConsoleReader;
ConsoleReader reader = new ConsoleReader(this, output); | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import java.util.ArrayList;
import java.util.List;
import org.apache.accumulo.core.cli.Help;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
static class Opts extends Help {
@Parameter(names="-r", description="print only mutations associated with the given row")
String row;
... | Remove this unused private "appendProp" method. |
import org.apache.accumulo.core.security.Authorizations;
import org.apache.accumulo.trace.instrument.TraceExecutorService;
import org.apache.accumulo.trace.instrument.Tracer;
// This needs to execute after the arbiter is stopped
Scanner mscanner = new IsolatedScanner(conn.createScanner... | Remove this unused method parameter "range". |
* 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 java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.accumulo.core.client.IteratorSetting;
private Option noFlushOption, waitOpt, profileOpt;
private List<IteratorSetting> iterators;
shellState.getConnector().tableOperations().compact(tableName, startRow, ... | Move this constructor to comply with Java Code Conventions. |
package org.apache.accumulo.core.iterators.filter;
import java.util.Map;
import org.apache.accumulo.core.data.Key;
import org.apache.accumulo.core.data.Value;
import org.apache.accumulo.core.iterators.OptionDescriber;
import org.apache.accumulo.core.security.ColumnVisibility;
@SuppressWarnings("deprecation")
public... | Return empty string instead. |
import org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader;
clazz = AccumuloVFSClassLoader.loadClass(cl.getOptionValue(interpreterOpt.getOpt()), ScanInterpreter.class);
clazz = AccumuloVFSClassLoader.loadClass(cl.getOptionValue(formatterInterpeterOpt.getOpt()), ScanInterpreter.class);
... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import org.apache.accumulo.core.security.thrift.Credential;
private Credential credentials;
public TabletServerBatchWriter(Instance instance, Credential credentials, BatchWriterConfig config) { | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
sb.append(" docID=").append(doc);
Value v = iter.getTopValue();
assertTrue(new String(v.get()).endsWith(" docID="+iter.getDocID(k)));
Value v = iter.getTopValue();
assertTrue(new String(v.get()).endsWith(" docID="+iter.getDocID(k)));
Value v = iter.getTopValue();
... | Either log or rethrow this exception. |
import java.util.concurrent.TimeUnit;
import org.apache.accumulo.core.conf.AccumuloConfiguration;
private Option timeoutOption;
protected long getTimeout(final CommandLine cl) {
if (cl.hasOption(timeoutOption.getLongOpt())) {
return AccumuloConfiguration.getTimeInMillis(cl.getOptionValue(timeoutOption.... | 3 duplicated blocks of code must be removed. |
public enum Operation {
MERGE, DELETE,
}
MergeState state = MergeState.NONE;
KeyExtent range;
Operation operation = Operation.MERGE;
public MergeInfo() {}
@Override
public void readFields(DataInput in) throws IOException {
range = new KeyExtent();
range.readFields(in);
state ... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
public ChunkInputStream(PeekingIterator<Entry<Key,Value>> in) throws IOException {
public void setSource(PeekingIterator<Entry<Key,Value>> in) throws IOException {
throw new IOException("setting new source without closing old one");
if (buf.length == 0)
gotEndMarker = true;
if (currentChunk != 0... | Either log or rethrow this exception. |
import org.junit.Assert;
}
final String[] expectedDefault = new String[] {"row cf:cq [] 1234abcd", "row cf1:cq1 [] 9876fedc", "row2 cf:cq [] 13579bdf",
"row2 cf1:cq [] 2468ace"};
final String[] expectedFormatted = new String[] {"row cf:cq [] 0x31 0x32 0x33 0x34 0x61 0x6... | Remove this unused method parameter "range". |
System.out.printf("Max depth : %d%n", depth);
System.out.printf("Time to find max depth : %,d ms%n", (t2 - t1));
System.out.printf("Time to compute counts : %,d ms%n", (t3 - t2));
System.out.printf("Entries scanned : %,d %n", entriesScanned);
System.out.printf("Counts inserted ... | Use isEmpty() to check whether the collection is empty or not. |
/*
* 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. |
public Mutation(byte[] byteBuffer) {
this(byteBuffer, 0, byteBuffer.length);
}
public Mutation(byte[] byteBuffer, int start, int length) {
this.row = new byte[length];
System.arraycopy(byteBuffer, start, this.row, 0, length);
buffer = new ByteBuffer();
}
| 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... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.apache.accumulo.core.metadata.MetadataTable;
import org.junit.Rule;
import org.junit.rules.TemporaryFolder;
@Rule
public TemporaryFolder folder = new TemporaryFolder(new Fil... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import org.apache.accumulo.core.client.security.SecurityErrorCode;
if (ae.getSecurityErrorCode().equals(SecurityErrorCode.PERMISSION_DENIED)) {
if (ae.getSecurityErrorCode().equals(SecurityErrorCode.BAD_AUTHORIZATIONS)) {
&& ((AccumuloSecurityException) re.getCause()).getSecurityErrorC... | Do not forget to remove this deprecated code someday. |
/*
* 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 ... | 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. |
protected long numKeysRead; | Either log or rethrow this exception. |
/**
* Exception to throw if an operation is attempted on a table that doesn't exist.
*
*/
private static final long serialVersionUID = 1L;
private String tableName;
/**
* @param tableId
* the internal id of the table that was sought
* @param tableName
* the visible ... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
*
*
*
*
* | Replace all tab characters in this file by sequences of white-spaces. |
import org.apache.accumulo.core.security.tokens.PasswordToken; | Replace all tab characters in this file by sequences of white-spaces. |
import org.apache.accumulo.core.conf.AccumuloConfiguration;
private AccumuloConfiguration acuTableConf;
AccumuloConfiguration acuTableConf, KeyExtent extent, CompactionEnv env, List<IteratorSetting> iterators, MajorCompactionReason reason) {
AccumuloConfiguration acuTableConf, KeyExtent extent, Compaction... | Remove this unused import 'org.apache.hadoop.fs.FileSystem'. |
import org.apache.accumulo.core.metadata.RootTable;
import org.apache.accumulo.core.metadata.schema.MetadataSchema;
import org.apache.accumulo.core.metadata.schema.MetadataSchema.TabletsSection.DataFileColumnFamily;
import org.apache.accumulo.core.metadata.schema.MetadataSchema.TabletsSection.LogColumnFamily;
import or... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import org.apache.accumulo.core.security.tokens.PasswordToken; | 1 duplicated blocks of code must be removed. |
@SuppressWarnings("all") public class UpdateErrors implements org.apache.thrift.TBase<UpdateErrors, UpdateErrors._Fields>, java.io.Serializable, Cloneable { | 13 duplicated blocks of code must be removed. |
import org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope; | Either log or rethrow this exception. |
String tableName = getTableNames(1)[0];
| Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
private final Set<MemoryIterator> activeIters = Collections.synchronizedSet(new HashSet<MemoryIterator>()); | Remove this unused private "appendProp" method. |
connector = instance.getConnector("user", "password");
Connector connector = instance.getConnector("user", "password"); | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
* Factory method to create a ConditionalWriter connected to Accumulo.
*
* @param tableName
* the name of the table to query data from
* @param config
* configuration used to create conditional writer
*
* @return ConditionalWriter object for writing ConditionalMutations
* @... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
private BatchWriter writer = null;
private Connector connector;
final String table;
if (writer == null)
resetWriter();
if (writer == null)
return;
table = conf.get(Property.TRACE_TABLE);
resetWriter();
}
}
synchronized private void resetWriter() {
try ... | Reorder the modifiers to comply with the Java Language Specification. |
if (this.credentials.getPrincipal().equals(principal)) { | Move this constructor to comply with Java Code Conventions. |
@Override
public void visit(State state, Properties props) throws Exception {
Connector conn = state.getConnector();
int nextId = ((Integer) state.get("nextId")).intValue();
String tableName = String.format("%s_%d", state.getString("tableNamePrefix"), nextId);
try {
conn.tableOperations().c... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import org.apache.accumulo.core.Constants;
Value inVal = new Value(multiByteText.getBytes(Constants.UTF8));
String outVal = new String(outValue.get(), Constants.UTF8); | Move this variable to comply with Java Code Conventions. |
folder.delete(); | 2 duplicated blocks of code must be removed. |
@Override
| Reduce the number of conditional operators (6) used in the expression (maximum allowed 3). |
import org.apache.accumulo.cloudtrace.thrift.TInfo; | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
if (!fs.rename(tmpDatafile, newDatafile)) {
throw new IOException("rename fails");
} | Refactor this code to not nest more than 3 if/for/while/switch/try statements. |
String _elem108; // optional
IteratorSetting _elem111; // optional
String _elem118; // optional
IteratorSetting _elem121; // optional | 277 duplicated blocks of code must be removed. |
package org.apache.accumulo.server.tabletserver.mastermessage;
import java.util.Map;
import java.util.TreeMap;
import org.apache.accumulo.core.client.impl.Translator;
import org.apache.accumulo.core.data.KeyExtent;
import org.apache.accumulo.core.master.thrift.MasterClientService;
import org.apache.accumulo.core.mast... | Return empty string instead. |
package org.apache.accumulo.test.functional; | Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison. |
import java.io.File;
public static TemporaryFolder folder = new TemporaryFolder(new File(System.getProperty("user.dir") + "/target"));
| Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
System.out.println("accumulo init | master | tserver | monitor | shell | admin | gc | classpath | rfile-info | login-info | tracer | mini | proxy | zookeeper | <accumulo class> args"); | Replace this use of System.out or System.err by a logger. |
if (super.validateOptions(options) == false)
return false;
try {
setEncoder(options);
} catch (Exception e) {
throw new IllegalArgumentException("bad encoder option", e);
} | Return empty string instead. |
leaf.jump(jumpKey);
if (testTreeState() && overallRange.contains(root.getTopKey())) {
next();
if (log.isDebugEnabled()) {
log.debug("overallRange " + overallRange + " topKey " + this.root.getTopKey() + " contains " + overallRange.contains(this.root.getTopKey()));
}
if (ove... | 31 duplicated blocks of code must be removed. |
VARLEN, FIXEDLEN, STRING
case VARLEN:
case FIXEDLEN:
io.setName("longcombiner");
io.setDescription("LongCombiner can interpret Values as Longs in a variety of encodings (variable length, fixed length, or string) before combining");
io.addNamedOption(TYPE, "<VARLEN|FIXEDLEN|STRING|fullCla... | Remove the literal "true" boolean value. |
import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper;
private InstanceTokenWrapper credentials;
public ScannerImpl(Instance instance, InstanceTokenWrapper credentials, String table, Authorizations authorizations) { | Immediately return this expression instead of assigning it to the temporary variable "ret". |
import java.util.Arrays;
import org.apache.commons.logging.impl.Log4JCategoryLog;
for (int i = 0; i < 10; i++) {
exec("ping", true, "OK", true);
// wait for both tservers to start up
if (output.get().split("\n").length == 3)
break;
UtilWaitThread.sleep(1000);
} | Either log or rethrow this exception. |
// private static final Logger log = Logger.getLogger(TraceProxy.class);
static final Sampler ALWAYS = new Sampler() {
@Override
public boolean next() {
return true;
}
};
public static <T> T trace(T instance) {
return trace(instance, ALWAYS);
}
@SuppressWarnings("unchecked")
... | 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. |
/*
* 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. |
AccumuloInputFormat.addIterator(job, is);
AccumuloInputFormat.addIterator(job, new IteratorSetting(1, "WholeRow", WholeRowIterator.class));
AccumuloInputFormat.addIterator(job, new IteratorSetting(2, "Versions", "org.apache.accumulo.core.iterators.VersioningIterator"));
AccumuloInputFormat.addIterator(j... | Move this variable to comply with Java Code Conventions. |
SITE_CONF = System.getenv("ACCUMULO_CONF_DIR") + "/" + configFile; | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import java.net.InetAddress;
HashMap<String,String> hostNameCache = new HashMap<String,String>();
String ip = tserverBin.getKey().split(":", 2)[0];
String location = hostNameCache.get(ip);
if (location == null) {
InetAddress inetAddress = InetAddress.getByName(ip);
location = inet... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import org.apache.accumulo.server.tabletserver.TabletServer;
import org.apache.accumulo.server.tabletserver.log.RemoteLogger.LoggerOperation;
LoggerOperation write(RemoteLogger logger, int seq) throws Exception;
ArrayList<LoggerOperation> queuedOperations = new ArrayList<LoggerOperation>(copy.size());
... | Remove the redundant '!unknownSymbol!' thrown exception declaration(s). |
volatile boolean gotLock = false;
volatile Exception failureException = null;
@Override
public void acquiredLock() {
gotLock = true;
}
@Override
public void failedToAcquireLock(Exception e) {
failureException = e;
}
@Override
public void lostLock(LockLossReason reason) {}
| Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
import org.apache.accumulo.trace.thrift.TInfo;
* @see org.apache.accumulo.core.tabletserver.thrift.TabletClientService.Iface#removeLogs(org.apache.accumulo.trace.thrift.TInfo, | Remove the redundant '!unknownSymbol!' thrown exception declaration(s). |
if (sleepTime > 0)
Thread.sleep(sleepTime); | Remove this call to "exit" or ensure it is really required. |
* A lexicoder that flips the sort order from another lexicoder. If this is applied to {@link DateLexicoder}, the most recent date will be sorted first and the
* oldest date will be sorted last. If it's applied to {@link LongLexicoder}, the Long.MAX_VALUE will be sorted first and Long.MIN_VALUE will be sorted last,
*... | Remove this unused import 'java.util.Date'. |
package org.apache.accumulo.core.iterators.system;
import java.io.IOException;
import java.util.Collection;
import java.util.Map;
import org.apache.accumulo.core.data.ByteSequence;
import org.apache.accumulo.core.data.Range;
import org.apache.accumulo.core.iterators.IteratorEnvironment;
import org.apache.accumulo.cor... | 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... | Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.