/*
 * Copyright 2015 Palantir Technologies, Inc. All rights reserved.
 *
 * Licensed under the BSD-3 License (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://opensource.org/licenses/BSD-3-Clause
 *
 * 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 com.palantir.atlasdb.table.api;

import java.util.Iterator;
import java.util.List;
import java.util.Map;

import com.google.common.collect.Multimap;
import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
import com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection;
import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
import com.palantir.atlasdb.transaction.api.ConstraintCheckable;
import com.palantir.common.base.BatchingVisitable;

/*
 * Each AtlasDbTable should implement this interface.
 */
public interface AtlasDbImmutableTable<ROW, COLUMN_VALUE, ROW_RESULT> extends ConstraintCheckable {
    List<COLUMN_VALUE> getRowColumns(ROW row);
    List<COLUMN_VALUE> getRowColumns(ROW row,
                                     ColumnSelection columnSelection);
    Multimap<ROW, COLUMN_VALUE> getRowsMultimap(Iterable<ROW> rows);
    Multimap<ROW, COLUMN_VALUE> getRowsMultimap(Iterable<ROW> rows,
                                                ColumnSelection columnSelection);
    Map<ROW, BatchingVisitable<COLUMN_VALUE>> getRowsColumnRange(Iterable<ROW> rows,
                                                                 BatchColumnRangeSelection columnRangeSelection);

    Iterator<Map.Entry<ROW, COLUMN_VALUE>> getRowsColumnRange(Iterable<ROW> rows,
                                                              ColumnRangeSelection columnRangeSelection,
                                                              int batchHint);
}

@@ -1611,24 +1611,211 @@
 Selection);%0A
+    %0A    /*%0A     * This returns visitables for each row. It should be used if you want to visit a number of the first %0A     * matched columns instead of all the columns per row.%0A     */ %0A
     Map%3CROW,
@@ -2002,16 +2002,282 @@
 tion);%0A%0A
+    /*%0A     * This returns an iterator that visits the result columns row by row.%0A     * %0A     * @param rows rows to get%0A     * @param columnRangeSelection column range selection for each row%0A     * @param batchHint batch size for reading from the database%0A     */ %0A
     Iter

add some docs for AtlasDbImmutableTable (#2445)