当前位置: 首页>>代码示例>>Java>>正文


Java StreamInput.readNullableString方法代码示例

本文整理汇总了Java中org.elasticsearch.common.io.stream.StreamInput.readNullableString方法的典型用法代码示例。如果您正苦于以下问题:Java StreamInput.readNullableString方法的具体用法?Java StreamInput.readNullableString怎么用?Java StreamInput.readNullableString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.elasticsearch.common.io.stream.StreamInput的用法示例。


在下文中一共展示了StreamInput.readNullableString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    tenantName = in.readNullableString();
    transientSettings = readSettingsFromStream(in);
    persistentSettings = readSettingsFromStream(in);
    readTimeout(in);

    int transientToRemoveSize = in.readVInt();
    for (int i = 0; i < transientToRemoveSize; i++) {
        transientSettingsToRemove.add(in.readString());
    }
    int persistentToRemoveSize = in.readVInt();
    for (int i = 0; i < persistentToRemoveSize; i++) {
        persistentSettingsToRemove.add(in.readString());
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:18,代码来源:ClusterUpdateSettingsRequest.java

示例2: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    this.loginUsername = in.readNullableString();
    this.tenantId = in.readLong();
    this.password = in.readNullableString();
    this.sourceAddrs = in.readNullableString();
    this.proxyAddrs = in.readNullableString();
    this.authenticated = in.readBoolean();
    this.authorized = in.readBoolean();
    this.userProperty = null;
    this.fullUsername = UserProperty.generateUsernameWithTenant(UserProperty.getUsernameWithoutTenantFromFullUsername(loginUsername), tenantId);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:13,代码来源:LoginUserContext.java

示例3: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    nodeIp = in.readNullableString();
    nodePort = in.readInt();
    tenantName = in.readNullableString();
    operation = TenantModificationOperation.fromValue(in.readInt());
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:ModifyTenantNodesRequest.java

示例4: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    tenantName = in.readNullableString();
    nodeNum = in.readInt();
    password = in.readNullableString();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:AlterTenantPropertyRequest.java

示例5: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    this.tenantName = in.readNullableString();
    this.nodeNum = in.readInt();
    this.password = in.readNullableString();
    this.instanceList = in.readNullableString();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:CreateTenantRequest.java

示例6: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    tenantName = in.readNullableString();
    int indexNum = in.readInt();
    indices = new String[indexNum];
    for (int i = 0; i < indexNum; ++i) {
        indices[i] = in.readString();
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:11,代码来源:MigrateIndexTenantRequest.java

示例7: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    tenantName = in.readNullableString();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:6,代码来源:DeleteTenantRequest.java


注:本文中的org.elasticsearch.common.io.stream.StreamInput.readNullableString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。