org.rocksdb.ComparatorOptions Java Examples
The following examples show how to use
org.rocksdb.ComparatorOptions.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RocksDBKeySliceComparator.java From kcache with Apache License 2.0 | 4 votes |
public RocksDBKeySliceComparator(Serde<K> keySerde, Comparator<K> keyComparator) { super(new ComparatorOptions()); this.comparator = new RocksDBKeyComparator<>(keySerde, keyComparator); }
Example #2
Source File: RocksComparatorTest.java From Voovan with Apache License 2.0 | 4 votes |
public RocksComparatorTest(ComparatorOptions copt) { super(copt); }
Example #3
Source File: EzRocksDbComparator.java From ezdb with Apache License 2.0 | 4 votes |
public EzRocksDbComparator(Comparator<byte[]> hashKeyComparator, Comparator<byte[]> rangeKeyComparator) { super(new ComparatorOptions()); this.hashKeyComparator = hashKeyComparator; this.rangeKeyComparator = rangeKeyComparator; }