@Test public void testDistinctPropertyValuesByVertexLabelAndPropertyName() throws Exception { assertThat( TEST_STATISTICS.getDistinctVertexProperties("Person", "name"), is(6L)); assertThat( TEST_STATISTICS.getDistinctVertexProperties("Person", "gender"), is(2L)); assertThat( TEST_STATISTICS.getDistinctVertexProperties("Person", "city"), is(3L)); assertThat( TEST_STATISTICS.getDistinctVertexProperties("Person", "age"), is(4L)); assertThat( TEST_STATISTICS.getDistinctVertexProperties("Person", "speaks"), is(1L)); assertThat( TEST_STATISTICS.getDistinctVertexProperties("Person", "locIP"), is(1L)); assertThat( TEST_STATISTICS.getDistinctVertexProperties("Tag", "name"), is(3L)); assertThat( TEST_STATISTICS.getDistinctVertexProperties("Forum", "title"), is(2L)); assertThat( TEST_STATISTICS.getDistinctVertexProperties("foo", "bar"), is(0L)); }
public long getDistinctVertexProperties(String propertyName) { return distinctVertexProperties.getOrDefault(propertyName, 0L); }
GraphStatistics { public long getDistinctVertexProperties(String propertyName) { return distinctVertexProperties.getOrDefault(propertyName, 0L); } }
GraphStatistics { public long getDistinctVertexProperties(String propertyName) { return distinctVertexProperties.getOrDefault(propertyName, 0L); } GraphStatistics(long vertexCount, long edgeCount,
    long distinctSourceVertexCount, long distinctTargetVertexCount);   GraphStatistics(long vertexCount, long edgeCount, Map<String, Long> vertexCountByLabel,
    Map<String, Long> edgeCountByLabel,
    Map<String, Map<String, Long>> edgeCountBySourceVertexAndEdgeLabel,
    Map<String, Map<String, Long>> edgeCountByTargetVertexAndEdgeLabel,
    long distinctSourceVertexCount, long distinctTargetVertexCount,
    Map<String, Long> distinctSourceVertexCountByEdgeLabel,
    Map<String, Long> distinctTargetVertexCountByEdgeLabel,
    Map<String, Map<String, Long>> distinctEdgePropertiesByLabel,
    Map<String, Map<String, Long>> distinctVertexPropertiesByLabel,
    Map<String, Long> distinctEdgeProperties,
    Map<String, Long> distinctVertexProperties); }
GraphStatistics { public long getDistinctVertexProperties(String propertyName) { return distinctVertexProperties.getOrDefault(propertyName, 0L); } GraphStatistics(long vertexCount, long edgeCount,
    long distinctSourceVertexCount, long distinctTargetVertexCount);   GraphStatistics(long vertexCount, long edgeCount, Map<String, Long> vertexCountByLabel,
    Map<String, Long> edgeCountByLabel,
    Map<String, Map<String, Long>> edgeCountBySourceVertexAndEdgeLabel,
    Map<String, Map<String, Long>> edgeCountByTargetVertexAndEdgeLabel,
    long distinctSourceVertexCount, long distinctTargetVertexCount,
    Map<String, Long> distinctSourceVertexCountByEdgeLabel,
    Map<String, Long> distinctTargetVertexCountByEdgeLabel,
    Map<String, Map<String, Long>> distinctEdgePropertiesByLabel,
    Map<String, Map<String, Long>> distinctVertexPropertiesByLabel,
    Map<String, Long> distinctEdgeProperties,
    Map<String, Long> distinctVertexProperties); long getVertexCount(); long getEdgeCount(); long getVertexCount(String vertexLabel); long getEdgeCount(String edgeLabel); long getEdgeCountBySource(String vertexLabel, String edgeLabel); long getEdgeCountByTarget(String vertexLabel, String edgeLabel); long getDistinctSourceVertexCount(); long getDistinctTargetVertexCount(); long getDistinctSourceVertexCount(String edgeLabel); long getDistinctTargetVertexCount(String edgeLabel); long getDistinctVertexProperties(String propertyName); long getDistinctEdgeProperties(String propertyName); long getDistinctVertexProperties(String vertexLabel, String propertyName); long getDistinctEdgeProperties(String edgeLabel, String propertyName); @Override String toString(); }
GraphStatistics { public long getDistinctVertexProperties(String propertyName) { return distinctVertexProperties.getOrDefault(propertyName, 0L); } GraphStatistics(long vertexCount, long edgeCount,
    long distinctSourceVertexCount, long distinctTargetVertexCount);   GraphStatistics(long vertexCount, long edgeCount, Map<String, Long> vertexCountByLabel,
    Map<String, Long> edgeCountByLabel,
    Map<String, Map<String, Long>> edgeCountBySourceVertexAndEdgeLabel,
    Map<String, Map<String, Long>> edgeCountByTargetVertexAndEdgeLabel,
    long distinctSourceVertexCount, long distinctTargetVertexCount,
    Map<String, Long> distinctSourceVertexCountByEdgeLabel,
    Map<String, Long> distinctTargetVertexCountByEdgeLabel,
    Map<String, Map<String, Long>> distinctEdgePropertiesByLabel,
    Map<String, Map<String, Long>> distinctVertexPropertiesByLabel,
    Map<String, Long> distinctEdgeProperties,
    Map<String, Long> distinctVertexProperties); long getVertexCount(); long getEdgeCount(); long getVertexCount(String vertexLabel); long getEdgeCount(String edgeLabel); long getEdgeCountBySource(String vertexLabel, String edgeLabel); long getEdgeCountByTarget(String vertexLabel, String edgeLabel); long getDistinctSourceVertexCount(); long getDistinctTargetVertexCount(); long getDistinctSourceVertexCount(String edgeLabel); long getDistinctTargetVertexCount(String edgeLabel); long getDistinctVertexProperties(String propertyName); long getDistinctEdgeProperties(String propertyName); long getDistinctVertexProperties(String vertexLabel, String propertyName); long getDistinctEdgeProperties(String edgeLabel, String propertyName); @Override String toString();  }