com.bigdata.bop.fed.shards.Splitter Maven / Gradle / Ivy
package com.bigdata.bop.fed.shards;
import com.bigdata.mdi.IMetadataIndex;
import com.bigdata.service.ndx.AbstractSplitter;
/**
* Helper class efficiently splits an array of sorted keys into groups
* associated with a specific index partition.
*
* @author Bryan
* Thompson
*/
class Splitter extends AbstractSplitter {
private final IMetadataIndex mdi;
public Splitter(final IMetadataIndex mdi) {
if (mdi == null)
throw new IllegalArgumentException();
this.mdi = mdi;
}
@Override
protected IMetadataIndex getMetadataIndex(long ts) {
return mdi;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy