Enum RecordCursor.NoNextReason

    • Method Detail

      • values

        public static RecordCursor.NoNextReason[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RecordCursor.NoNextReason c : RecordCursor.NoNextReason.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RecordCursor.NoNextReason valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isOutOfBand

        public boolean isOutOfBand()
        Does this reason represent an out-of-band (that is, not solely dependent on the records returned) completion? In general, when an out-of-band reason is encountered, the entire cursor tree unwinds and returns to the client to start over fresh with a new cursor.
        Returns:
        true if this cursor stopped early
      • isSourceExhausted

        public boolean isSourceExhausted()
        Does this reason indicate that there is no more data available? These are the cases in which RecordCursor.getContinuation() would return null.
        Returns:
        true if the source of this cursor is completely exhausted and no completion is possible
      • isLimitReached

        public boolean isLimitReached()
        Does this reason indicate that some limit was reached? This includes both the in-band returned row limit and the out-of-band time and other resource limits.
        Returns:
        true if this cursor stopped due to any kind of limit being reached