Java SortedMap Usage pruneStartAndEndKeys(SortedMap setOfStartKeyByteArray, List listOfStartKeyByteArray)

Here you can find the source of pruneStartAndEndKeys(SortedMap setOfStartKeyByteArray, List listOfStartKeyByteArray)

Description

prune Start And End Keys

License

Apache License

Declaration

private static void pruneStartAndEndKeys(SortedMap<Integer, byte[]> setOfStartKeyByteArray,
            List<byte[]> listOfStartKeyByteArray) 

Method Source Code

//package com.java2s;
/*//from w w  w .j  a v  a 2s  .c o m
 * 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
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * 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.
 */

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

import java.util.SortedMap;

public class Main {
    private static void pruneStartAndEndKeys(SortedMap<Integer, byte[]> setOfStartKeyByteArray,
            List<byte[]> listOfStartKeyByteArray) {
        for (Map.Entry<Integer, byte[]> entry : setOfStartKeyByteArray.entrySet()) {
            listOfStartKeyByteArray.add(entry.getValue());
        }
    }
}

Related

  1. generatePropertiesFilter(SortedMap propertiesMap)
  2. getAll(SortedMap map)
  3. getObjectSortedMap(SortedMap map, T key)
  4. isCollectionClass(Class clazz)
  5. lastElement(List c)
  6. putWeightToBin(SortedMap hist, double bin, double weight)
  7. removeSetFromBulkLm(Set toRemoveSet, List> byteSizeByNameList, String exceptRegex)
  8. sortedMapOf(final Object obj, final Class keyCastTo, final Class valueCastTo)
  9. submapWithPrefix(SortedMap map, String prefix)