/** * <p> * The order in which data points should be returned. <code>TimestampDescending</code> returns the newest data first * and paginates when the <code>MaxDatapoints</code> limit is reached. <code>TimestampAscending</code> returns the * oldest data first and paginates when the <code>MaxDatapoints</code> limit is reached. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #scanBy} will * return {@link ScanBy#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #scanByAsString}. * </p> * * @return The order in which data points should be returned. <code>TimestampDescending</code> returns the newest * data first and paginates when the <code>MaxDatapoints</code> limit is reached. * <code>TimestampAscending</code> returns the oldest data first and paginates when the * <code>MaxDatapoints</code> limit is reached. * @see ScanBy */ public ScanBy scanBy() { return ScanBy.fromValue(scanBy); }
/** * <p> * The order in which data points should be returned. <code>TimestampDescending</code> returns the newest data first * and paginates when the <code>MaxDatapoints</code> limit is reached. <code>TimestampAscending</code> returns the * oldest data first and paginates when the <code>MaxDatapoints</code> limit is reached. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #scanBy} will * return {@link ScanBy#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #scanByAsString}. * </p> * * @return The order in which data points should be returned. <code>TimestampDescending</code> returns the newest * data first and paginates when the <code>MaxDatapoints</code> limit is reached. * <code>TimestampAscending</code> returns the oldest data first and paginates when the * <code>MaxDatapoints</code> limit is reached. * @see ScanBy */ public ScanBy scanBy() { return ScanBy.fromValue(scanBy); }