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

com.alicloud.openservices.tablestore.timeline.model.TimelineMetaSchema Maven / Gradle / Ivy

Go to download

Aliyun Open Services SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 5.17.5
Show newest version
package com.alicloud.openservices.tablestore.timeline.model;

import com.alicloud.openservices.tablestore.model.search.IndexSchema;

public class TimelineMetaSchema {
    private TimelineIdentifierSchema identifierSchema;

    private String tableName;
    private String indexName;
    private IndexSchema indexSchema;

    public TimelineMetaSchema(String tableName, TimelineIdentifierSchema identifierSchema) {
        this.tableName = tableName;
        this.identifierSchema = identifierSchema;
    }

    public TimelineMetaSchema withIndex(String indexName, IndexSchema metaIndex) {
        this.indexName = indexName;
        this.indexSchema = metaIndex;
        return this;
    }

    public boolean hasMetaIndex() {
        return indexName != null && indexSchema != null;
    }

    public TimelineIdentifierSchema getIdentifierSchema() {
        return identifierSchema;
    }

    public String getTableName() {
        return tableName;
    }

    public String getIndexName() {
        return indexName;
    }

    public IndexSchema getIndexSchema() {
        return indexSchema;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy