Java Code Examples for org.rocksdb.RocksDB#getLongProperty()
The following examples show how to use
org.rocksdb.RocksDB#getLongProperty() .
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: RocksDBPropertyTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@Test public void testRocksDBPropertiesValid() throws RocksDBException { RocksDB db = rocksDBResource.getRocksDB(); ColumnFamilyHandle handle = rocksDBResource.getDefaultColumnFamily(); for (RocksDBProperty property : RocksDBProperty.values()) { try { db.getLongProperty(handle, property.getRocksDBProperty()); } catch (RocksDBException e) { throw new AssertionError(String.format("Invalid RocksDB property %s", property.getRocksDBProperty()), e); } } }
Example 2
Source File: RocksDBPropertyTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testRocksDBPropertiesValid() throws RocksDBException { RocksDB db = rocksDBResource.getRocksDB(); ColumnFamilyHandle handle = rocksDBResource.getDefaultColumnFamily(); for (RocksDBProperty property : RocksDBProperty.values()) { try { db.getLongProperty(handle, property.getRocksDBProperty()); } catch (RocksDBException e) { throw new AssertionError(String.format("Invalid RocksDB property %s", property.getRocksDBProperty()), e); } } }
Example 3
Source File: Webapp.java From outbackcdx with Apache License 2.0 | 5 votes |
private Response collectionDetails(RocksDB db) { String page = "<form>URL: <input name=url type=url><button type=submit>Query</button></form>\n<pre>"; try { page += db.getProperty("rocksdb.stats"); page += "\nEstimated number of records: " + db.getLongProperty("rocksdb.estimate-num-keys"); } catch (RocksDBException e) { page += e.toString(); e.printStackTrace(); } return new Response(OK, "text/html", page); }
Example 4
Source File: RocksDBPropertyTest.java From flink with Apache License 2.0 | 5 votes |
@Test public void testRocksDBPropertiesValid() throws RocksDBException { RocksDB db = rocksDBResource.getRocksDB(); ColumnFamilyHandle handle = rocksDBResource.getDefaultColumnFamily(); for (RocksDBProperty property : RocksDBProperty.values()) { try { db.getLongProperty(handle, property.getRocksDBProperty()); } catch (RocksDBException e) { throw new AssertionError(String.format("Invalid RocksDB property %s", property.getRocksDBProperty()), e); } } }