MCPcopy
hub / github.com/OpenTSDB/opentsdb / flushStorage

Method flushStorage

test/storage/MockBase.java:728–735  ·  view source on GitHub ↗

Clears out all rows from storage but doesn't delete the tables or families.

()

Source from the content-addressed store, hash-verified

726 * Clears out all rows from storage but doesn't delete the tables or families.
727 */
728 public void flushStorage() {
729 for (final ByteMap<ByteMap<ByteMap<TreeMap<Long, byte[]>>>> table :
730 storage.values()) {
731 for (final ByteMap<ByteMap<TreeMap<Long, byte[]>>> cf : table.values()) {
732 cf.clear();
733 }
734 }
735 }
736
737 /**
738 * Clears out all rows for a given table

Calls 3

clearMethod · 0.80
valuesMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected