core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentAbstract.java
public long countView(final String viewName) {
    final OView cls = getMetadata().getImmutableSchemaSnapshot().getView(viewName);
    if (cls == null)
      throw new IllegalArgumentException("View '" + cls + "' not found in database");

    return countClass(cls, false);
  }
public long countView(final String viewName) {
    final OView cls = getMetadata().getImmutableSchemaSnapshot().getView(viewName);
    if (cls == null)
      throw new IllegalArgumentException("View '" + cls + "' not found in database");

    return countClass(cls, false);
  }
public long countView ( final String viewName ) { final OView cls = getMetadata ( ) . getImmutableSchemaSnapshot ( ) . getView ( viewName ) ; if ( cls == null ) throw new IllegalArgumentException ( "View '" + cls + "' not found in database" ) ; return countClass ( cls , false ) ; }
Returns the number of the records of the class iClassName.
Returns the number of the records of the class iClassName .