All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.documentdb.internal.query.orderbyquery.OrderByQueryResult Maven / Gradle / Ivy

package com.microsoft.azure.documentdb.internal.query.orderbyquery;

import java.util.*;

import org.json.JSONObject;

import com.microsoft.azure.documentdb.*;
import com.microsoft.azure.documentdb.internal.query.QueryItem;

/**
 * Represents the result of a query in the Azure Cosmos DB database service.
 */
public final class OrderByQueryResult extends Document {
    private List orderByItems;
    private Document payload;

    public OrderByQueryResult(String jsonString) {
        super(jsonString);
    }

    public OrderByQueryResult(JSONObject jsonObject) {
        super(jsonObject);
    }

    public List getOrderByItems() {
        return this.orderByItems != null ? this.orderByItems
                : (this.orderByItems = (List) super.getCollection("orderByItems", QueryItem.class));
    }

    public Document getPayload() {
        return this.payload != null ? this.payload : (this.payload = super.getObject("payload", Document.class));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy