All Products
Search
Document Center

Query

Last Updated: May 19, 2022

Class name: com.aliyun.hitsdb.client.value.response.QueryResult

java.lang.Object

com.aliyun.hitsdb.client.value.JSONValue

com.aliyun.hitsdb.client.value.request.Query

public class Query
extends JSONValue

Essentials of the nested class

Qualifier and type

Class and explanations

static class

Query.Builder

Builder Essentials

Builder and explanation

Query()

Method Essentials

Qualifier and type

Method and explanation

Boolean

getDelete()

Whether to delete.

long

getEnd()

Get the end time of the queried time range.

List<SubQuery>

getQueries()

Get all sub-queries.

long

getStart()

Get the start time of the queried time range.

static Query.Builder

start(Date startDate)

Specifies to delete the queried data. Set the start time of the queried time range.

static Query.Builder

start(long startTime)

Specifies to delete the queried data. Set the start time of the queried time range.

static Query.Builder

timeRange(Date startDate, Date endDate)

Set the start and end time of the queried time range. And get the Query.Builder instance.

static Query.Builder

timeRange(long startTime, long endTime)

Set the start and end time of the queried time range. And get the Query.Builder instance.

Method of inheritance from a class com.aliyun.hitsdb.client.value. JSONValue

appendJSON, parseObject, toJSON, toString

Method of inheritance from a class java.lang. Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait

Builder details

  • Query

    public Query()

Method details

  • start

    public static Query.Builder start(long startTime)
    Set the start time of the queried time range.
    Parameters:
    startTime - Start timestamp
    Return:
    Get the Query.Builder instance
  • start

    public static Query.Builder start(Date startDate)
    Set the start time of the queried time range.
    Parameters:
    startDate - start date
    Return:
    Builder
  • timeRange

    public static Query.Builder timeRange(Date startDate, Date endDate)
    Set the start and end time.
    Parameters:
    startDate - Start time
    endDate - End time
    Return:
    Builder
  • timeRange

    public static Query.Builder timeRange(long startTime, long endTime)
    Set the start and end time of the queried time range.
    Parameters:
    startTime - Start timestamp
    endTime - End timestamp
    Return:
    Builder
  • getStart

    public long getStart()
    Get the start time of the queried time range.
  • getEnd

    public long getEnd()
    Get the end time of the queried time range.
  • getDelete

    public Boolean getDelete()
    Get whether to delete the queried data. This function is currently unavailable.
  • getQueries

    public List<SubQuery> getQueries()
    Get all sub-queries.