Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C712185D4 for ; Sat, 9 Jan 2016 03:38:07 +0000 (UTC) Received: (qmail 39980 invoked by uid 500); 9 Jan 2016 03:38:07 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 39865 invoked by uid 500); 9 Jan 2016 03:38:07 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 38701 invoked by uid 99); 9 Jan 2016 03:38:05 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jan 2016 03:38:05 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 20726E384F; Sat, 9 Jan 2016 03:38:05 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ctubbsii@apache.org To: commits@accumulo.apache.org Date: Sat, 09 Jan 2016 03:38:14 -0000 Message-Id: <0d95b8751591452aada2d7d5574f5c49@git.apache.org> In-Reply-To: <95f169c243204e0dabe939b2e81829d7@git.apache.org> References: <95f169c243204e0dabe939b2e81829d7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [11/19] accumulo git commit: ACCUMULO-4102 Fix bad javadocs ACCUMULO-4102 Fix bad javadocs Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/c8c0cf7f Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/c8c0cf7f Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/c8c0cf7f Branch: refs/heads/master Commit: c8c0cf7f90023a49cbb2b790f30819810bed0bf9 Parents: 7cc8137 Author: Christopher Tubbs Authored: Fri Jan 8 19:50:42 2016 -0500 Committer: Christopher Tubbs Committed: Fri Jan 8 20:48:51 2016 -0500 ---------------------------------------------------------------------- .../core/bloomfilter/DynamicBloomFilter.java | 4 +-- .../accumulo/core/client/BatchWriterConfig.java | 10 +++--- .../core/client/ConditionalWriterConfig.java | 4 +-- .../client/mapred/AccumuloFileOutputFormat.java | 4 +-- .../mapreduce/AccumuloFileOutputFormat.java | 6 ++-- .../lib/impl/FileOutputConfigurator.java | 4 +-- .../lib/util/FileOutputConfigurator.java | 4 +-- .../security/tokens/AuthenticationToken.java | 2 +- .../core/conf/AccumuloConfiguration.java | 2 +- .../org/apache/accumulo/core/data/Range.java | 8 ++--- .../file/blockfile/cache/CachedBlockQueue.java | 2 +- .../core/file/blockfile/cache/ClassSize.java | 4 +-- .../accumulo/core/file/rfile/bcfile/Utils.java | 35 +++++++++++--------- .../user/WholeColumnFamilyIterator.java | 4 +-- .../core/metadata/ServicerForMetadataTable.java | 2 +- .../core/metadata/ServicerForRootTable.java | 2 +- .../core/metadata/ServicerForUserTables.java | 2 +- .../core/security/ColumnVisibility.java | 8 ++--- .../core/security/VisibilityConstraint.java | 1 - .../security/crypto/CryptoModuleParameters.java | 7 +--- .../examples/simple/filedata/ChunkCombiner.java | 18 +++++----- .../apache/accumulo/server/ServerConstants.java | 2 +- .../server/security/SecurityOperation.java | 6 ++-- .../server/security/SystemCredentialsTest.java | 2 +- .../monitor/servlets/DefaultServlet.java | 2 +- .../monitor/servlets/TablesServlet.java | 4 +-- 26 files changed, 73 insertions(+), 76 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/bloomfilter/DynamicBloomFilter.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/bloomfilter/DynamicBloomFilter.java b/core/src/main/java/org/apache/accumulo/core/bloomfilter/DynamicBloomFilter.java index 740bdda..11e765a 100644 --- a/core/src/main/java/org/apache/accumulo/core/bloomfilter/DynamicBloomFilter.java +++ b/core/src/main/java/org/apache/accumulo/core/bloomfilter/DynamicBloomFilter.java @@ -60,8 +60,8 @@ import org.apache.hadoop.util.bloom.Key; *

* A dynamic Bloom filter (DBF) makes use of a s * m bit matrix but each of the s rows is a standard Bloom filter. The creation * process of a DBF is iterative. At the start, the DBF is a 1 * m bit matrix, i.e., it is composed of a single standard Bloom filter. It assumes - * that nr elements are recorded in the initial bit vector, where nr <= n (n is the cardinality of - * the set A to record in the filter). + * that nr elements are recorded in the initial bit vector, where nr <= n (n is the cardinality + * of the set A to record in the filter). *

* As the size of A grows during the execution of the application, several keys must be inserted in the DBF. When inserting a key into the DBF, one * must first get an active Bloom filter in the matrix. A Bloom filter is active when the number of recorded keys, nr, is strictly less http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/client/BatchWriterConfig.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/BatchWriterConfig.java b/core/src/main/java/org/apache/accumulo/core/client/BatchWriterConfig.java index 08eb853..320ecf4 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/BatchWriterConfig.java +++ b/core/src/main/java/org/apache/accumulo/core/client/BatchWriterConfig.java @@ -49,7 +49,7 @@ public class BatchWriterConfig implements Writable { private Integer maxWriteThreads = null; /** - * Sets the maximum memory to batch before writing. The smaller this value, the more frequently the {@link BatchWriter} will write.
+ * Sets the maximum memory to batch before writing. The smaller this value, the more frequently the {@link BatchWriter} will write.
* If set to a value smaller than a single mutation, then it will {@link BatchWriter#flush()} after each added mutation. Must be non-negative. * *

@@ -69,11 +69,11 @@ public class BatchWriterConfig implements Writable { } /** - * Sets the maximum amount of time to hold the data in memory before flushing it to servers.
+ * Sets the maximum amount of time to hold the data in memory before flushing it to servers.
* For no maximum, set to zero, or {@link Long#MAX_VALUE} with {@link TimeUnit#MILLISECONDS}. * *

- * {@link TimeUnit#MICROSECONDS} or {@link TimeUnit#NANOSECONDS} will be truncated to the nearest {@link TimeUnit#MILLISECONDS}.
+ * {@link TimeUnit#MICROSECONDS} or {@link TimeUnit#NANOSECONDS} will be truncated to the nearest {@link TimeUnit#MILLISECONDS}.
* If this truncation would result in making the value zero when it was specified as non-zero, then a minimum value of one {@link TimeUnit#MILLISECONDS} will * be used. * @@ -101,11 +101,11 @@ public class BatchWriterConfig implements Writable { } /** - * Sets the maximum amount of time an unresponsive server will be re-tried. When this timeout is exceeded, the {@link BatchWriter} should throw an exception.
+ * Sets the maximum amount of time an unresponsive server will be re-tried. When this timeout is exceeded, the {@link BatchWriter} should throw an exception.
* For no timeout, set to zero, or {@link Long#MAX_VALUE} with {@link TimeUnit#MILLISECONDS}. * *

- * {@link TimeUnit#MICROSECONDS} or {@link TimeUnit#NANOSECONDS} will be truncated to the nearest {@link TimeUnit#MILLISECONDS}.
+ * {@link TimeUnit#MICROSECONDS} or {@link TimeUnit#NANOSECONDS} will be truncated to the nearest {@link TimeUnit#MILLISECONDS}.
* If this truncation would result in making the value zero when it was specified as non-zero, then a minimum value of one {@link TimeUnit#MILLISECONDS} will * be used. * http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/client/ConditionalWriterConfig.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/ConditionalWriterConfig.java b/core/src/main/java/org/apache/accumulo/core/client/ConditionalWriterConfig.java index 360a302..627a580 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/ConditionalWriterConfig.java +++ b/core/src/main/java/org/apache/accumulo/core/client/ConditionalWriterConfig.java @@ -51,11 +51,11 @@ public class ConditionalWriterConfig { /** * Sets the maximum amount of time an unresponsive server will be re-tried. When this timeout is exceeded, the {@link ConditionalWriter} should return the - * mutation with an exception.
+ * mutation with an exception.
* For no timeout, set to zero, or {@link Long#MAX_VALUE} with {@link TimeUnit#MILLISECONDS}. * *

- * {@link TimeUnit#MICROSECONDS} or {@link TimeUnit#NANOSECONDS} will be truncated to the nearest {@link TimeUnit#MILLISECONDS}.
+ * {@link TimeUnit#MICROSECONDS} or {@link TimeUnit#NANOSECONDS} will be truncated to the nearest {@link TimeUnit#MILLISECONDS}.
* If this truncation would result in making the value zero when it was specified as non-zero, then a minimum value of one {@link TimeUnit#MILLISECONDS} will * be used. * http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/client/mapred/AccumuloFileOutputFormat.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/mapred/AccumuloFileOutputFormat.java b/core/src/main/java/org/apache/accumulo/core/client/mapred/AccumuloFileOutputFormat.java index 2f2b4b2..236fae5 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/mapred/AccumuloFileOutputFormat.java +++ b/core/src/main/java/org/apache/accumulo/core/client/mapred/AccumuloFileOutputFormat.java @@ -41,7 +41,7 @@ import org.apache.hadoop.util.Progressable; import org.apache.log4j.Logger; /** - * This class allows MapReduce jobs to write output in the Accumulo data file format.
+ * This class allows MapReduce jobs to write output in the Accumulo data file format.
* Care should be taken to write only sorted data (sorted by {@link Key}), as this is an important requirement of Accumulo data files. * *

@@ -81,7 +81,7 @@ public class AccumuloFileOutputFormat extends FileOutputFormat { } /** - * Sets the size for data blocks within each file.
+ * Sets the size for data blocks within each file.
* Data blocks are a span of key/value pairs stored in the file that are compressed and indexed as a group. * *

http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/client/mapreduce/AccumuloFileOutputFormat.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/mapreduce/AccumuloFileOutputFormat.java b/core/src/main/java/org/apache/accumulo/core/client/mapreduce/AccumuloFileOutputFormat.java index 500f072..8c389d4 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/mapreduce/AccumuloFileOutputFormat.java +++ b/core/src/main/java/org/apache/accumulo/core/client/mapreduce/AccumuloFileOutputFormat.java @@ -20,7 +20,6 @@ import java.io.IOException; import java.util.Arrays; import org.apache.accumulo.core.client.mapreduce.lib.impl.FileOutputConfigurator; -import org.apache.accumulo.core.util.HadoopCompatUtil; import org.apache.accumulo.core.conf.AccumuloConfiguration; import org.apache.accumulo.core.conf.Property; import org.apache.accumulo.core.data.ArrayByteSequence; @@ -29,6 +28,7 @@ import org.apache.accumulo.core.data.Value; import org.apache.accumulo.core.file.FileOperations; import org.apache.accumulo.core.file.FileSKVWriter; import org.apache.accumulo.core.security.ColumnVisibility; +import org.apache.accumulo.core.util.HadoopCompatUtil; import org.apache.commons.collections.map.LRUMap; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; @@ -40,7 +40,7 @@ import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; import org.apache.log4j.Logger; /** - * This class allows MapReduce jobs to write output in the Accumulo data file format.
+ * This class allows MapReduce jobs to write output in the Accumulo data file format.
* Care should be taken to write only sorted data (sorted by {@link Key}), as this is an important requirement of Accumulo data files. * *

@@ -80,7 +80,7 @@ public class AccumuloFileOutputFormat extends FileOutputFormat { } /** - * Sets the size for data blocks within each file.
+ * Sets the size for data blocks within each file.
* Data blocks are a span of key/value pairs stored in the file that are compressed and indexed as a group. * *

http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/impl/FileOutputConfigurator.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/impl/FileOutputConfigurator.java b/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/impl/FileOutputConfigurator.java index 882c6d3..f0f67b2 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/impl/FileOutputConfigurator.java +++ b/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/impl/FileOutputConfigurator.java @@ -39,7 +39,7 @@ public class FileOutputConfigurator extends ConfiguratorBase { } /** - * The supported Accumulo properties we set in this OutputFormat, that change the behavior of the RecordWriter.
+ * The supported Accumulo properties we set in this OutputFormat, that change the behavior of the RecordWriter.
* These properties correspond to the supported public static setter methods available to this class. * * @param property @@ -120,7 +120,7 @@ public class FileOutputConfigurator extends ConfiguratorBase { } /** - * Sets the size for data blocks within each file.
+ * Sets the size for data blocks within each file.
* Data blocks are a span of key/value pairs stored in the file that are compressed and indexed as a group. * *

http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/FileOutputConfigurator.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/FileOutputConfigurator.java b/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/FileOutputConfigurator.java index d43ecda..b4f6b8a 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/FileOutputConfigurator.java +++ b/core/src/main/java/org/apache/accumulo/core/client/mapreduce/lib/util/FileOutputConfigurator.java @@ -39,7 +39,7 @@ public class FileOutputConfigurator extends ConfiguratorBase { } /** - * The supported Accumulo properties we set in this OutputFormat, that change the behavior of the RecordWriter.
+ * The supported Accumulo properties we set in this OutputFormat, that change the behavior of the RecordWriter.
* These properties correspond to the supported public static setter methods available to this class. * * @param property @@ -95,7 +95,7 @@ public class FileOutputConfigurator extends ConfiguratorBase { } /** - * Sets the size for data blocks within each file.
+ * Sets the size for data blocks within each file.
* Data blocks are a span of key/value pairs stored in the file that are compressed and indexed as a group. * *

http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/client/security/tokens/AuthenticationToken.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/security/tokens/AuthenticationToken.java b/core/src/main/java/org/apache/accumulo/core/client/security/tokens/AuthenticationToken.java index 7836ea5..5c20555 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/security/tokens/AuthenticationToken.java +++ b/core/src/main/java/org/apache/accumulo/core/client/security/tokens/AuthenticationToken.java @@ -39,7 +39,7 @@ import org.apache.hadoop.io.Writable; public interface AuthenticationToken extends Writable, Destroyable, Cloneable { /** - * A utility class to serialize/deserialize {@link AuthenticationToken} objects.
+ * A utility class to serialize/deserialize {@link AuthenticationToken} objects.
* Unfortunately, these methods are provided in an inner-class, to avoid breaking the interface API. * * @since 1.6.0 http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java b/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java index 33b7aef..5da92cb 100644 --- a/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java +++ b/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java @@ -80,7 +80,7 @@ public abstract class AccumuloConfiguration implements Iterablestring under the given prefix property. + * This method returns all properties in a map of string->string under the given prefix property. * * @param property * the prefix property, and must be of type PropertyType.PREFIX http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/data/Range.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/data/Range.java b/core/src/main/java/org/apache/accumulo/core/data/Range.java index b832c33..7ccfe3d 100644 --- a/core/src/main/java/org/apache/accumulo/core/data/Range.java +++ b/core/src/main/java/org/apache/accumulo/core/data/Range.java @@ -423,7 +423,7 @@ public class Range implements WritableComparable { if (range.infiniteStopKey || (cmp = range.stop.compareTo(currentRange.stop)) > 0 || (cmp == 0 && range.stopKeyInclusive)) { currentRange = new Range(currentRange.getStartKey(), currentStartKeyInclusive, range.getEndKey(), range.stopKeyInclusive); - }/* else currentRange contains ral.get(i) */ + } /* else currentRange contains ral.get(i) */ } else { ret.add(currentRange); currentRange = range; @@ -506,12 +506,12 @@ public class Range implements WritableComparable { } /** - * Creates a new range that is bounded by the columns passed in. The stary key in the returned range will have a column >= to the minimum column. The end key - * in the returned range will have a column <= the max column. + * Creates a new range that is bounded by the columns passed in. The stary key in the returned range will have a column >= to the minimum column. The end + * key in the returned range will have a column <= the max column. * * @return a column bounded range * @throws IllegalArgumentException - * if min > max + * if min > max */ public Range bound(Column min, Column max) { http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/CachedBlockQueue.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/CachedBlockQueue.java b/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/CachedBlockQueue.java index 0c35b98..9b52635 100644 --- a/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/CachedBlockQueue.java +++ b/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/CachedBlockQueue.java @@ -21,7 +21,7 @@ import java.util.LinkedList; import java.util.PriorityQueue; /** - * A memory-bound queue that will grow until an element brings total size >= maxSize. From then on, only entries that are sorted larger than the smallest + * A memory-bound queue that will grow until an element brings total size >= maxSize. From then on, only entries that are sorted larger than the smallest * current entry will be inserted/replaced. * *

http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/ClassSize.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/ClassSize.java b/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/ClassSize.java index f898a8f..f15e28f 100644 --- a/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/ClassSize.java +++ b/core/src/main/java/org/apache/accumulo/core/file/blockfile/cache/ClassSize.java @@ -251,7 +251,7 @@ public class ClassSize { * * @param num * number to align to 8 - * @return smallest number >= input that is a multiple of 8 + * @return smallest number >= input that is a multiple of 8 */ public static int align(int num) { return (int) (align((long) num)); @@ -262,7 +262,7 @@ public class ClassSize { * * @param num * number to align to 8 - * @return smallest number >= input that is a multiple of 8 + * @return smallest number >= input that is a multiple of 8 */ public static long align(long num) { // The 7 comes from that the alignSize is 8 which is the number of bytes http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/Utils.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/Utils.java b/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/Utils.java index 84b861b..46afc0b 100644 --- a/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/Utils.java +++ b/core/src/main/java/org/apache/accumulo/core/file/rfile/bcfile/Utils.java @@ -54,18 +54,21 @@ public final class Utils { * Encoding a Long integer into a variable-length encoding format. *

    *
  • if n in [-32, 127): encode in one byte with the actual value. Otherwise, - *
  • if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52; byte[1]=n&0xff. Otherwise, - *
  • if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 - 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise, - *
  • if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112; byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise: - *
  • if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] = (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff; - *
  • if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] = (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff; byte[4]=(n>>8)&0xff; - * byte[5]=n&0xff - *
  • if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] = (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff; byte[4]=(n>>16)&0xff; - * byte[5]=(n>>8)&0xff; byte[6]=n&0xff; - *
  • if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] = (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff; byte[4]=(n>>24)&0xff; - * byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff; byte[7]=n&0xff; - *
  • if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] = (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff; - * byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff; byte[7]=(n>>8)&0xff; byte[8]=n&0xff; + *
  • if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52; byte[1]=n&0xff. Otherwise, + *
  • if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 - 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise, + *
  • if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112; byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; + * byte[3]=n&0xff. Otherwise: + *
  • if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] = (n>>24)&0xff; byte[2]=(n>>16)&0xff; + * byte[3]=(n>>8)&0xff; byte[4]=n&0xff; + *
  • if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] = (n>>32)&0xff; byte[2]=(n>>24)&0xff; + * byte[3]=(n>>16)&0xff; byte[4]=(n>>8)&0xff; byte[5]=n&0xff + *
  • if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] = (n>>40)&0xff; byte[2]=(n>>32)&0xff; + * byte[3]=(n>>24)&0xff; byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff; + *
  • if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] = (n>>48)&0xff; byte[2] = (n>>40)&0xff; + * byte[3]=(n>>32)&0xff; byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff; byte[7]=n&0xff; + *
  • if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] = (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = + * (n>>40)&0xff; byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff; byte[7]=(n>>8)&0xff; + * byte[8]=n&0xff; *
* * @param out @@ -159,10 +162,10 @@ public final class Utils { /** * Decoding the variable-length integer. Suppose the value of the first byte is FB, and the following bytes are NB[*]. *
    - *
  • if (FB >= -32), return (long)FB; - *
  • if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff; - *
  • if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 + NB[1]&0xff; - *
  • if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 + (NB[1]&0xff)<<8 + NB[2]&0xff; + *
  • if (FB >= -32), return (long)FB; + *
  • if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff; + *
  • if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 + NB[1]&0xff; + *
  • if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 + (NB[1]&0xff)<<8 + NB[2]&0xff; *
  • if (FB in [-128, -121]), return interpret NB[FB+129] as a signed big-endian integer. *
* http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/iterators/user/WholeColumnFamilyIterator.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/iterators/user/WholeColumnFamilyIterator.java b/core/src/main/java/org/apache/accumulo/core/iterators/user/WholeColumnFamilyIterator.java index 25f30a8..8e7a385 100644 --- a/core/src/main/java/org/apache/accumulo/core/iterators/user/WholeColumnFamilyIterator.java +++ b/core/src/main/java/org/apache/accumulo/core/iterators/user/WholeColumnFamilyIterator.java @@ -180,9 +180,9 @@ public class WholeColumnFamilyIterator implements SortedKeyValueIterator + * A metadata servicer for the metadata table (which holds metadata for user tables).
* The metadata table's metadata is serviced in the root table. */ class ServicerForMetadataTable extends TableMetadataServicer { http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForRootTable.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForRootTable.java b/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForRootTable.java index 205adc9..b279d01 100644 --- a/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForRootTable.java +++ b/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForRootTable.java @@ -26,7 +26,7 @@ import org.apache.accumulo.core.data.KeyExtent; import org.apache.accumulo.core.security.Credentials; /** - * A metadata servicer for the root table.
+ * A metadata servicer for the root table.
* The root table's metadata is serviced in zookeeper. */ class ServicerForRootTable extends MetadataServicer { http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForUserTables.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForUserTables.java b/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForUserTables.java index d4827f2..607dfbd 100644 --- a/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForUserTables.java +++ b/core/src/main/java/org/apache/accumulo/core/metadata/ServicerForUserTables.java @@ -20,7 +20,7 @@ import org.apache.accumulo.core.client.Instance; import org.apache.accumulo.core.security.Credentials; /** - * A metadata servicer for user tables.
+ * A metadata servicer for user tables.
* Metadata for user tables are serviced in the metadata table. */ class ServicerForUserTables extends TableMetadataServicer { http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/security/ColumnVisibility.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/security/ColumnVisibility.java b/core/src/main/java/org/apache/accumulo/core/security/ColumnVisibility.java index 842e6f9..26d1cd0 100644 --- a/core/src/main/java/org/apache/accumulo/core/security/ColumnVisibility.java +++ b/core/src/main/java/org/apache/accumulo/core/security/ColumnVisibility.java @@ -37,7 +37,7 @@ import org.apache.hadoop.io.WritableComparator; * Validate the column visibility is a valid expression and set the visibility for a Mutation. See {@link ColumnVisibility#ColumnVisibility(byte[])} for the * definition of an expression. * - *

+ *

* The expression is a sequence of characters from the set [A-Za-z0-9_-.] along with the binary operators "&" and "|" indicating that both operands are * necessary, or the either is necessary. The following are valid expressions for visibility: * @@ -48,7 +48,7 @@ import org.apache.hadoop.io.WritableComparator; * orange|(red&yellow) * * - *

+ *

* The following are not valid expressions for visibility: * *

@@ -61,13 +61,13 @@ import org.apache.hadoop.io.WritableComparator;
  * dog|!cat
  * 
* - *

+ *

* In addition to the base set of visibilities, any character can be used in the expression if it is quoted. If the quoted term contains '"' or '\', then * escape the character with '\'. The {@link #quote(String)} method can be used to properly quote and escape terms automatically. The following is an example of * a quoted term: * *

- * "A#C"&B
+ * "A#C" & B
  * 
*/ public class ColumnVisibility { http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/security/VisibilityConstraint.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/security/VisibilityConstraint.java b/core/src/main/java/org/apache/accumulo/core/security/VisibilityConstraint.java index 67175c0..d9d13d7 100644 --- a/core/src/main/java/org/apache/accumulo/core/security/VisibilityConstraint.java +++ b/core/src/main/java/org/apache/accumulo/core/security/VisibilityConstraint.java @@ -29,7 +29,6 @@ import org.apache.accumulo.core.util.BadArgumentException; /** * A constraint that checks the visibility of columns against the actor's authorizations. Violation codes: - *

*

    *
  • 1 = failure to parse visibility expression
  • *
  • 2 = insufficient authorization
  • http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/core/src/main/java/org/apache/accumulo/core/security/crypto/CryptoModuleParameters.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/security/crypto/CryptoModuleParameters.java b/core/src/main/java/org/apache/accumulo/core/security/crypto/CryptoModuleParameters.java index b9bf253..a7bb93d 100644 --- a/core/src/main/java/org/apache/accumulo/core/security/crypto/CryptoModuleParameters.java +++ b/core/src/main/java/org/apache/accumulo/core/security/crypto/CryptoModuleParameters.java @@ -195,9 +195,7 @@ public class CryptoModuleParameters { /** * Sets the name of the random number generator to use. The default for this for the baseline JCE implementation is "SHA1PRNG". *

    - * - *

    - * For encryption, this value is required.
    + * For encryption, this value is required.
    * For decryption, this value is often obtained from the underlying cipher stream. * * @param randomNumberGenerator @@ -275,7 +273,6 @@ public class CryptoModuleParameters { /** * Sets the encrypted version of the plaintext key ({@link CryptoModuleParameters#getPlaintextKey()}). Generally this operation will be done either by: - *

    *

      *
    • the code reading an encrypted stream and coming across the encrypted version of one of these keys, OR *
    • the {@link CryptoModuleParameters#getKeyEncryptionStrategyClass()} that encrypted the plaintext key (see @@ -285,11 +282,9 @@ public class CryptoModuleParameters { * For encryption, this value is generally not required, but is usually set by the underlying module during encryption.
      * For decryption, this value is usually required. * - * * @param encryptedKey * the encrypted value of the plaintext key */ - public void setEncryptedKey(byte[] encryptedKey) { this.encryptedKey = encryptedKey; } http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/examples/simple/src/main/java/org/apache/accumulo/examples/simple/filedata/ChunkCombiner.java ---------------------------------------------------------------------- diff --git a/examples/simple/src/main/java/org/apache/accumulo/examples/simple/filedata/ChunkCombiner.java b/examples/simple/src/main/java/org/apache/accumulo/examples/simple/filedata/ChunkCombiner.java index ca77b39..0ffeca0 100644 --- a/examples/simple/src/main/java/org/apache/accumulo/examples/simple/filedata/ChunkCombiner.java +++ b/examples/simple/src/main/java/org/apache/accumulo/examples/simple/filedata/ChunkCombiner.java @@ -34,20 +34,20 @@ import org.apache.hadoop.io.Text; * This iterator dedupes chunks and sets their visibilities to the combined visibility of the refs columns. For example, it would combine * *
      - *    row1 refs uid1\0a A&B V0
      - *    row1 refs uid2\0b C&D V0
      - *    row1 ~chunk 0 A&B V1
      - *    row1 ~chunk 0 C&D V1
      - *    row1 ~chunk 0 E&F V1
      - *    row1 ~chunk 0 G&H V1
      + *    row1 refs uid1\0a A&B V0
      + *    row1 refs uid2\0b C&D V0
      + *    row1 ~chunk 0 A&B V1
      + *    row1 ~chunk 0 C&D V1
      + *    row1 ~chunk 0 E&F V1
      + *    row1 ~chunk 0 G&H V1
        * 
      * * into the following * *
      - *    row1 refs uid1\0a A&B V0
      - *    row1 refs uid2\0b C&D V0
      - *    row1 ~chunk 0 (A&B)|(C&D) V1
      + *    row1 refs uid1\0a A&B V0
      + *    row1 refs uid2\0b C&D V0
      + *    row1 ~chunk 0 (A&B)|(C&D) V1
        * 
      * * {@link VisibilityCombiner} is used to combie the visibilities. http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/server/base/src/main/java/org/apache/accumulo/server/ServerConstants.java ---------------------------------------------------------------------- diff --git a/server/base/src/main/java/org/apache/accumulo/server/ServerConstants.java b/server/base/src/main/java/org/apache/accumulo/server/ServerConstants.java index 2b654ca..137a3fe 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/ServerConstants.java +++ b/server/base/src/main/java/org/apache/accumulo/server/ServerConstants.java @@ -40,7 +40,7 @@ public class ServerConstants { public static final String INSTANCE_ID_DIR = "instance_id"; /** - * current version (3) reflects additional namespace operations (ACCUMULO-802) in version 1.6.0
      + * current version (3) reflects additional namespace operations (ACCUMULO-802) in version 1.6.0
      * (versions should never be negative) */ public static final Integer WIRE_VERSION = 3; http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/server/base/src/main/java/org/apache/accumulo/server/security/SecurityOperation.java ---------------------------------------------------------------------- diff --git a/server/base/src/main/java/org/apache/accumulo/server/security/SecurityOperation.java b/server/base/src/main/java/org/apache/accumulo/server/security/SecurityOperation.java index 6f34247..273c9de 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/security/SecurityOperation.java +++ b/server/base/src/main/java/org/apache/accumulo/server/security/SecurityOperation.java @@ -255,7 +255,7 @@ public class SecurityOperation { } /** - * Checks if a user has a system permission
      + * Checks if a user has a system permission
      * This cannot check if a system user has permission. * * @return true if a user exists and has permission; false otherwise @@ -289,7 +289,7 @@ public class SecurityOperation { } /** - * Checks if a user has a table permission
      + * Checks if a user has a table permission
      * This cannot check if a system user has permission. * * @return true if a user exists and has permission; false otherwise @@ -312,7 +312,7 @@ public class SecurityOperation { } /** - * Checks if a user has a namespace permission
      + * Checks if a user has a namespace permission
      * This cannot check if a system user has permission. * * @return true if a user exists and has permission; false otherwise http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/server/base/src/test/java/org/apache/accumulo/server/security/SystemCredentialsTest.java ---------------------------------------------------------------------- diff --git a/server/base/src/test/java/org/apache/accumulo/server/security/SystemCredentialsTest.java b/server/base/src/test/java/org/apache/accumulo/server/security/SystemCredentialsTest.java index a4db195..a4c5fd6 100644 --- a/server/base/src/test/java/org/apache/accumulo/server/security/SystemCredentialsTest.java +++ b/server/base/src/test/java/org/apache/accumulo/server/security/SystemCredentialsTest.java @@ -54,7 +54,7 @@ public class SystemCredentialsTest { /** * This is a test to ensure the string literal in {@link ConnectorImpl#ConnectorImpl(Instance, Credentials)} is kept up-to-date if we move the - * {@link SystemToken}
      + * {@link SystemToken}
      * This check will not be needed after ACCUMULO-1578 */ @Test http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/DefaultServlet.java ---------------------------------------------------------------------- diff --git a/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/DefaultServlet.java b/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/DefaultServlet.java index bb7e690..ef2f872 100644 --- a/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/DefaultServlet.java +++ b/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/DefaultServlet.java @@ -201,7 +201,7 @@ public class DefaultServlet extends BasicServlet { sb.append("\n"); sb.append("\n"); - sb.append("
      \n"); + sb.append("
      \n"); sb.append("

      \n"); http://git-wip-us.apache.org/repos/asf/accumulo/blob/c8c0cf7f/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/TablesServlet.java ---------------------------------------------------------------------- diff --git a/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/TablesServlet.java b/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/TablesServlet.java index 19633b8..224ba91 100644 --- a/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/TablesServlet.java +++ b/server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/TablesServlet.java @@ -92,9 +92,9 @@ public class TablesServlet extends BasicServlet { tableList.addSortableColumn("Entries
      In Memory", new NumberType(), "The total number of key/value pairs stored in memory and not yet written to disk"); tableList.addSortableColumn("Ingest", new NumberType(), "The number of Key/Value pairs inserted. Note that deletes are 'inserted'."); - tableList.addSortableColumn("Entries
      Read", new NumberType(), + tableList.addSortableColumn("Entries
      Read", new NumberType(), "The number of Key/Value pairs read on the server side. Not all key values read may be returned to client because of filtering."); - tableList.addSortableColumn("Entries
      Returned", new NumberType(), + tableList.addSortableColumn("Entries
      Returned", new NumberType(), "The number of Key/Value pairs returned to clients during queries. This is not the number of scans."); tableList.addSortableColumn("Hold Time", new DurationType(0l, 0l), "The amount of time that ingest operations are suspended while waiting for data to be written to disk.");