org.aksw.commons.util.numbers
Class NumberChunker
java.lang.Object
org.aksw.commons.util.numbers.NumberChunker
public class NumberChunker
- extends Object
- Author:
- Claus Stadler
Date: 7/13/11
Time: 3:02 PM
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberChunker
public NumberChunker()
chunkValue
public static List<Long> chunkValue(long id,
long... chunkSizes)
chunkValue
public static List<Long> chunkValue(long id,
List<Long> chunkSizes)
- Given a value, chunks it according to the given bases.
This method is used in LinkedGeoData for the
directory layout of the changesets
e.g. 7531902 becomes (7, 531, 902) with chunks 1000/1000
- Parameters:
id - chunkSizes -
- Returns:
Copyright © 2012. All Rights Reserved.