Diff
stringlengths
10
2k
Message
stringlengths
28
159
@Override public void visit(State state, Properties props) throws Exception { String indexTableName = (String) state.get("indexTableName"); String dataTableName = (String) state.get("docTableName"); int numPartitions = (Integer) state.get("numPartitions"); Random rand = (Random) state.get("rand")...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* Autogenerated by Thrift Compiler (0.8.0) * @generated
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
public static final Key RESERVED_RANGE_START_KEY = new Key(new Text(new byte[] {'~'})); public static final Range NON_ROOT_KEYSPACE = new Range(null, false, RESERVED_RANGE_START_KEY, false); public static final Range KEYSPACE = new Range(new Key(new Text(ID)), true, RESERVED_RANGE_START_KEY, false); public stat...
Reduce this switch case number of lines from 12 to at most 5, for example by extracting code into methods.
String tableName = OptUtil.configureTableOpt(cl, shellState); opts.addOption(OptUtil.tableOpt("table to fetch locality groups from"));
Reduce this switch case number of lines from 8 to at most 5, for example by extracting code into methods.
AccumuloOutputFormat.setZooKeeperInstance(conf, args[6], args[7]); AccumuloOutputFormat.setOutputInfo(conf, args[8], args[9].getBytes(), true, null); AccumuloOutputFormat.setMaxMutationBufferSize(conf, 10L * 1000 * 1000);
This block of commented-out lines of code should be removed.
* Autogenerated by Thrift Compiler (0.8.0) * @generated
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/** * A Filter that matches entries based on Java regular expressions. */
Remove the literal "true" boolean value.
import org.apache.accumulo.core.metadata.MetadataTable;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.trace.instrument.Tracer;
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
if (source.hasNext()) top = source.next(); else top = null; if (source.hasNext()) top = source.next(); else top = null;
Remove this call to "exit" or ensure it is really required.
import org.apache.accumulo.core.client.Connector; import org.apache.accumulo.core.metadata.MetadataTable; import org.apache.accumulo.core.metadata.RootTable; import org.junit.After; @After public void cleanUp() throws Exception { Connector c = getConnector(); for (String table : c.tableOperations().list()) ...
Either log or rethrow this exception.
import java.nio.charset.Charset; private static final Charset utf8 = Charset.forName("UTF8"); return Long.toString(l, Character.MAX_RADIX).getBytes(utf8);
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 ...
Remove this unused private "appendProp" method.
import org.apache.accumulo.core.Constants; LineIterator it = FileUtils.lineIterator(file, Constants.UTF8.name()); @Test(timeout = 60 * 1000) @Test(timeout = 60 * 1000) @Test(timeout = 60 * 1000) LineIterator it = FileUtils.lineIterator(distCpTxt, Constants.UTF8.name()); @Test(timeout = 60 * 1000) ...
Move this variable to comply with Java Code Conventions.
package org.apache.accumulo.server.test.randomwalk; import org.apache.log4j.Logger; public abstract class Fixture { protected final Logger log = Logger.getLogger(this.getClass()); public abstract void setUp(State state) throws Exception; public abstract void tearDown(State state) throws Exception; }
Return empty string instead.
import org.apache.accumulo.server.fs.FileRef; import org.apache.accumulo.server.fs.VolumeManager; private static final Map<FileRef,DataFileValue> EMPTY_MAP = Collections.emptyMap(); private static Map<FileRef,DataFileValue> toFileMap(FileRef mergeFile, DataFileValue dfv) { MinorCompactor(Configuration conf, Volum...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.fate.zookeeper.ZooLock.LockLossReason; import org.apache.accumulo.fate.zookeeper.ZooLock.LockWatcher;
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.trace.instrument.Span; import org.apache.accumulo.trace.instrument.Trace; import org.apache.accumulo.trace.instrument.thrift.TraceWrap; import org.apache.accumulo.trace.thrift.TInfo; * @see org.apache.accumulo.core.tabletserver.thrift.TabletClientService.Iface#removeLogs(org.apache.accum...
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
import org.apache.accumulo.core.client.BatchWriterConfig; final BatchWriter bw = shellState.getConnector().createBatchWriter(shellState.getTableName(), new BatchWriterConfig().setMaxMemory(m.estimatedMemoryUsed()).setMaxWriteThreads(1));
Remove this unused method parameter "e".
import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper; private InstanceTokenWrapper credentials; public TabletServerBatchWriter(Instance instance, InstanceTokenWrapper credentials, BatchWriterConfig config) { client.update(tinfo, credentials.toThrift(), entry.getKey().toThrift(), entry....
Immediately return this expression instead of assigning it to the temporary variable "ret".
ZooReaderWriter.getInstance().delete(lockPath, -1);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.security.thrift.ThriftSecurityException;
1 duplicated blocks of code must be removed.
* 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.
public static final class AuthenticationTokenSerializer { public static <T extends AuthenticationToken> T deserialize(Class<T> tokenType, byte[] tokenBytes) { throw new IllegalArgumentException("Cannot instantiate " + tokenType.getName(), e); throw new IllegalArgumentException("Cannot deserialize ...
Remove this hard-coded password.
/* * 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.ArrayList; import org.apache.accumulo.core.Constants; tableNames = new ArrayList<String>(tableNames); tableNames.add(Constants.METADATA_TABLE_NAME);
Either log or rethrow this exception.
Constants.METADATA_CHOPPED_COLUMN.put(prevRow, new Value("junk".getBytes())); Constants.METADATA_SPLIT_RATIO_COLUMN.put(m, new Value("0.5".getBytes())); Constants.METADATA_OLD_PREV_ROW_COLUMN.put(m, KeyExtent.encodePrevEndRow(new Text("o"))); Constants.METADATA_SPLIT_RATIO_COLUMN.put(m, new Value("0.5...
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.server.util.FastFormat; public static void updateTabletDataFile(long tid, KeyExtent extent, Map<String,DataFileValue> estSizes, String time, InstanceTokenWrapper credentials, ZooLock zooLock) { public static void finishSplit(Text metadataEntry, Map<String,DataFileValue> datafil...
Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison.
shellState.getConnector().securityOperations().changeUserAuthorizations(user, ScanCommand.parseAuthorizations(scanOpts));
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 u...
Replace all tab characters in this file by sequences of white-spaces.
@Deprecated
Remove this unused method parameter "ex".
import org.apache.hadoop.hdfs.protocol.FSConstants; DatanodeInfo[] liveNodes = fs.getClient().datanodeReport(FSConstants.DatanodeReportType.LIVE); DatanodeInfo[] deadNodes = fs.getClient().datanodeReport(FSConstants.DatanodeReportType.DEAD);
This block of commented-out lines of code should be removed.
conn.securityOperations().createUser(systemUserName, sysUserPass);
Remove this unused private "appendProp" method.
LOGGER_ARCHIVE_REPLICATION("logger.archive.replication", "0", PropertyType.COUNT, "determines the replication factor for walogs archived in hdfs, set to zero to use default"),
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* @throws IllegalArgumentException * if the setting conflicts with existing iterators
Refactor this code to not nest more than 3 if/for/while/switch/try statements.
is.clearOptions(); RegExFilter.setRegexs(is, null, "ya.*", "hamster", null, true); rei.init(new SortedMapIterator(tm), is.getProperties(), new DefaultIteratorEnvironment()); rei.seek(new Range(), EMPTY_COL_FAMS, false); rei.deepCopy(new DefaultIteratorEnvironment());
Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
import org.apache.accumulo.core.client.Connector; import org.junit.Test; public class AddSplitIT extends MacTest { @Test public void addSplitTest() throws Exception { Connector c = getConnector(); c.tableOperations().create("foo"); c.tableOperations().addSplits("foo", splits); Collection<Text> actu...
Use "Long.toString" instead.
* A MapReduce that computes a histogram of byte frequency for each file and stores the histogram alongside the file data. The {@link ChunkInputFormat} is used * to read the file data from Accumulo. See docs/examples/README.filedata for instructions.
Replace this use of System.out or System.err by a logger.
import org.apache.accumulo.core.util.MetadataTable; Scanner scanner = connector.createScanner(MetadataTable.NAME, Authorizations.EMPTY); scanner.fetchColumnFamily(MetadataTable.CURRENT_LOCATION_COLUMN_FAMILY); connector.securityOperations().grantTablePermission("root", MetadataTable.NAME, TablePermission....
Use "Long.toString" instead.
private static final long serialVersionUID = 1L; private String server; public AccumuloServerException(String server, TApplicationException tae) { super("Error on server " + server, tae); this.setServer(server); } private void setServer(String server) { this.server = server; } public ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.client.security.tokens.PasswordToken;
1 duplicated blocks of code must be removed.
package org.apache.accumulo.test.randomwalk;
Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison.
import org.apache.accumulo.core.security.thrift.ThriftSecurityException;
1 duplicated blocks of code must be removed.
bmfw.append(new org.apache.accumulo.core.data.Key(new Text("r" + fi), new Text("cf1")), new Value(("v" + fi).getBytes())); bmfw.append(new org.apache.accumulo.core.data.Key(new Text("r" + fi), new Text("cf2")), new Value(("v" + fi).getBytes()));
Remove this unused method parameter "ex".
if (wait) Shell.log.info("Compacting table ..."); if (cl.hasOption(optStartRow.getOpt())) startRow = new Text(cl.getOptionValue(optStartRow.getOpt())); if (cl.hasOption(optEndRow.getOpt())) endRow = new Text(cl.getOptionValue(optEndRow.getOpt()));
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.
/* * 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.nio.charset.Charset; AccumuloInputFormat.setConnectorInfo(job, args[0], args[1].getBytes(Charset.forName("UTF-8"))); AccumuloOutputFormat.setConnectorInfo(job, args[0], args[1].getBytes(Charset.forName("UTF-8")));
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
AuthenticationToken authToken = authenticator.login(principal, props);
Remove this unused method parameter "principal".
import org.apache.accumulo.core.client.admin.InstanceOperationsImpl; instanceops = new InstanceOperationsImpl(instance, credentials);
Either log or rethrow this exception.
package org.apache.accumulo.wikisearch.iterator;
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 ...
Do not forget to remove this deprecated code someday.
public RootTabletStateStore(CurrentState state) { super(state); } @Override public Iterator<TabletLocationState> iterator() { Range range = new Range(Constants.ROOT_TABLET_EXTENT.getMetadataEntry(), false, KeyExtent.getMetadataEntry(new Text(Constants.METADATA_TABLE_ID), null), true); ...
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 ...
Remove this unused private "appendProp" method.
import org.apache.accumulo.core.security.tokens.SecurityToken; @SuppressWarnings("deprecation") * @deprecated since 1.5, use {@link #getConnector(SecurityToken)} * @deprecated since 1.5, use {@link #getConnector(SecurityToken)} * @deprecated since 1.5, use {@link #getConnector(SecurityToken)} * @deprecated ...
Either log or rethrow this exception.
import org.apache.accumulo.core.security.ColumnVisibility; private static final ColumnVisibility EMPTY_VIS = new ColumnVisibility(); Mutation m = ContinuousIngest.genMutation(rowLong, random.nextInt(max_cf), random.nextInt(max_cq), EMPTY_VIS, iiId, count++, key.getRowData() .toArray(), rand...
Remove this unused method parameter "r".
@Override @Override @Override public int hashCode() { return 0; }
Immediately return this expression instead of assigning it to the temporary variable "onlineTabletsForTable".
package org.apache.accumulo.cloudtrace.instrument.receivers;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
public void checkResults(final Iterable<Entry<Key,Value>> scanner, final List<Key> results, final PartialKey pk) { final ClientSideIteratorScanner csis = new ClientSideIteratorScanner(conn.createScanner("intersect", new Authorizations())); final IteratorSetting si = new IteratorSetting(10, "intersect", Inters...
Move this constructor to comply with Java Code Conventions.
import java.nio.ByteBuffer; import java.util.BitSet; import java.util.Collections; import java.util.EnumMap; import java.util.EnumSet; import java.util.HashMap; import java.util.Map; import org.apache.thrift.protocol.TTupleProtocol; /** * @deprecated since 1.5, use {@link#UserPassToken} instead */ @SuppressWarnings(...
Immediately return this expression instead of assigning it to the temporary variable "ret".
import org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader; Class<? extends Constraint> clazz = AccumuloVFSClassLoader.loadClass(className, Constraint.class);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* This is the Key used to store and access individual values in Accumulo. A Key is a tuple composed of a row, column family, column qualifier, * * * * * * * * ...
Replace all tab characters in this file by sequences of white-spaces.
@Deprecated
Return empty string instead.
import java.util.Arrays; import org.apache.accumulo.core.iterators.aggregation.LongSummation; import org.apache.accumulo.core.iterators.aggregation.NumArraySummation; import org.apache.accumulo.core.iterators.aggregation.NumSummation; @SuppressWarnings("deprecation") /** * @throws IOException * @deprecated s...
Remove the literal "true" boolean value.
import org.apache.accumulo.trace.instrument.Tracer;
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
/** * @deprecated since 1.4 * @use org.apache.accumulo.core.iterators.system.ColumnQualifierFilter **/
Remove this unused private "match" method.
@Override setUpIterator(Integer.MAX_VALUE - cl.getArgs().length + i, "grep" + i, cl.getArgs()[i], scanner, cl); } protected void setUpIterator(final int prio, final String name, final String term, final BatchScanner scanner, CommandLine cl) throws IOException { }
Move this variable to comply with Java Code Conventions.
private Option optTablePattern; public int execute(String fullCommand, CommandLine cl, Shell shellState) throws IOException, TableNotFoundException { SortedSet<String> tablesToFlush = new TreeSet<String>(Arrays.asList(cl.getArgs())); if (cl.hasOption(optTablePattern.getOpt())) { for (String tabl...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/** * @param args * : the name or UUID of the instance to be deleted */ public static void main(String[] args) throws Exception { if (args.length < 1) { System.err.println("Usage: " + DeleteZooInstance.class.getName() + " [instanceName|UUID ... ]"); System.exit(1); } Zoo...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/** * @deprecated since 1.4, use {@code scan -r <row> -c <columnfamily>[:<columnqualifier>]} instead. */ Shell.log.warn("select is deprecated, use scan -r <row> -c <columnfamily>[:<columnqualifier>]'"); }
1 duplicated blocks of code must be removed.
AccumuloInputFormat.setInputInfo(job.getConfiguration(), user, pass.getBytes(), table, new Authorizations()); AccumuloInputFormat.setZooKeeperInstance(job.getConfiguration(), instance, zookeepers); AccumuloInputFormat.setRanges(job.getConfiguration(), ranges); AccumuloInputFormat.disableAutoAdjustRa...
Remove this unused private "debugQuery" method.
package org.apache.accumulo.server.monitor.util; import org.apache.accumulo.server.monitor.util.celltypes.CellType; import org.apache.accumulo.server.monitor.util.celltypes.StringType; public class TableColumn<T> { private String title; private CellType<T> type; private String legend; public TableColumn(String t...
Return empty string instead.
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws IOException { if (!shellState.getReader().getTerminal().isANSISupported()) { }
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
/* * 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.
import org.apache.accumulo.examples.simple.dirlist.FileCount.Opts; Opts opts = new Opts(); opts.instance = "counttest"; opts.tableName = "dirlisttable"; opts.mock = true; FileCount fc = new FileCount(opts);
Remove this call to "exit" or ensure it is really required.
import org.apache.accumulo.core.client.AccumuloSecurityException; } catch (RuntimeException e) { if (e.getCause() instanceof AccumuloSecurityException) { log.debug("BatchScan " + tableName + " failed, permission error"); } else { throw e; }
Reorder the modifiers to comply with the Java Language Specification.
import org.apache.accumulo.cloudtrace.thrift.RemoteSpan;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
private RelativeTime() { super(new SystemTime()); } private static BaseRelativeTime instance = new RelativeTime(); public static BaseRelativeTime getInstance() { return instance; } public static void setInstance(BaseRelativeTime newInstance) { instance = newInstance; } public ...
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.
String address = sa.address.toString();
Remove this unused method parameter "threadName".
* 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.cloudtrace.instrument.Tracer; mmi = client.getMasterStats(Tracer.traceInfo(), SecurityConstants.getSystemCredentials()); GCMonitorService.Client client = ThriftUtil.getClient(new GCMonitorService.Client.Factory(), address, config.getConfiguration()); result =...
Immediately return this expression instead of assigning it to the temporary variable "client".
@Parameter(names = {"-t", "--table"}, required = true, description = "table to use") AccumuloInputFormat.setInputInfo(job, user, getPassword(), tableName, auths); AccumuloOutputFormat.setOutputInfo(job, user, getPassword(), true, tableName);
Move this variable to comply with Java Code Conventions.
import org.apache.accumulo.core.cli.ClientOnRequiredTable; ClientOnRequiredTable opts = new ClientOnRequiredTable(); opts.parseArgs(Flush.class.getName(), args); Connector connector = opts.getConnector(); connector.tableOperations().flush(opts.tableName, null, null, true);
Remove this unused private "appendProp" method.
TextIndexCombiner.setLossyness(setting, true); GlobalIndexUidCombiner.setLossyness(setting, true); GlobalIndexUidCombiner.setLossyness(setting, true);
Extract the assignment out of this expression.
protected int maxVersions; VersioningIterator copy = new VersioningIterator(); copy.setSource(getSource().deepCopy(env)); copy.maxVersions = maxVersions; return copy;
Define and throw a dedicated exception instead of using a generic one.
* 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]*$'.
package org.apache.accumulo.test.randomwalk.multitable;
Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison.
/* * 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.
* Autogenerated by Thrift Compiler (0.9.0)
Rename this class name 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]*$'.
import java.util.TreeMap;
2 duplicated blocks of code must be removed.
* <li>{@link AccumuloInputFormat#setConnectorInfo(Job, AccumuloToken)} OR {@link AccumuloInputFormat#setConnectorInfo(Job, Path)}
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
if (tls.getState(onlineTabletServers()).equals(TabletState.HOSTED)) { if (tls.chopped) return TabletGoalState.UNASSIGNED; } else { if (tls.chopped && tls.walogs.isEmpty()) return TabletGoalState.UNASSIGNED; } ...
Do not forget to remove this deprecated code someday.
package org.apache.accumulo.examples.wikisearch.parser; import org.apache.accumulo.examples.wikisearch.parser.QueryParser.EvaluationContext; import org.apache.accumulo.examples.wikisearch.parser.QueryParser.FunctionResult; import org.apache.accumulo.examples.wikisearch.parser.QueryParser.LiteralResult; import org.apach...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
// private static final Logger log = Logger.getLogger(WikipediaPartitionedMapper.class);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
String[] tableNames = getTableNames(2); String name1 = tableNames[0]; String name2 = tableNames[1];
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.