accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keith-turner <>
Subject [GitHub] accumulo pull request: Implementation of SeekingFilter, CfCqSliceF...
Date Fri, 14 Aug 2015 12:46:19 GMT
Github user keith-turner commented on a diff in the pull request:
    --- Diff: test/src/test/java/org/apache/accumulo/core/iterators/user/
    @@ -0,0 +1,378 @@
    + * 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 use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.accumulo.core.iterators.user;
    +import org.apache.accumulo.core.client.AccumuloException;
    +import org.apache.accumulo.core.client.AccumuloSecurityException;
    +import org.apache.accumulo.core.client.BatchScanner;
    +import org.apache.accumulo.core.client.BatchWriter;
    +import org.apache.accumulo.core.client.BatchWriterConfig;
    +import org.apache.accumulo.core.client.Connector;
    +import org.apache.accumulo.core.client.IteratorSetting;
    +import org.apache.accumulo.core.client.lexicoder.Lexicoder;
    +import org.apache.accumulo.core.iterators.SortedKeyValueIterator;
    +import org.apache.accumulo.core.iterators.ValueFormatException;
    +import org.apache.accumulo.minicluster.MiniAccumuloCluster;
    +import org.apache.accumulo.minicluster.MiniAccumuloConfig;
    +import org.junit.AfterClass;
    +import org.junit.BeforeClass;
    +import org.junit.Test;
    +import java.nio.file.Files;
    +import java.nio.file.Path;
    +import java.util.Collection;
    +import java.util.Collections;
    +import java.util.HashMap;
    +import java.util.LinkedList;
    +import java.util.List;
    +import java.util.Map;
    +import java.util.SortedSet;
    +import java.util.TreeSet;
    +import java.util.concurrent.atomic.AtomicLong;
    +import static java.nio.charset.StandardCharsets.UTF_8;
    +import static org.junit.Assert.assertTrue;
    +import static org.junit.Assert.assertFalse;
    +public abstract class TestCfCqSlice {
    +  private static final String TABLE_NAME = "TestColumnSliceFilter";
    +  private static final Collection<Range> INFINITY = Collections.singletonList(new
    +  private static final Lexicoder<Long> LONG_LEX = new ReadableLongLexicoder(4);
    +  private static final AtomicLong ROW_ID_GEN = new AtomicLong();
    +  private static final boolean easyThereSparky = false;
    +  private static final int LR_DIM = easyThereSparky ? 5 : 50;
    +  private static MiniAccumuloCluster mac;
    +  protected abstract Class<? extends SortedKeyValueIterator<Key,Value>> getFilterClass();
    --- End diff --
    I like this way of testing the two classes.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message