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


Java StreamOutput.writeNullableString方法代码示例

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


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

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeNullableString(tenantName);
    writeSettingsToStream(transientSettings, out);
    writeSettingsToStream(persistentSettings, out);
    writeTimeout(out);

    out.writeVInt(transientSettingsToRemove.size());
    for (String transientSettingName : transientSettingsToRemove) {
        out.writeString(transientSettingName);
    }
    out.writeVInt(persistentSettingsToRemove.size());
    for (String persistentSettingName : persistentSettingsToRemove) {
        out.writeString(persistentSettingName);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:18,代码来源:ClusterUpdateSettingsRequest.java

示例2: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeNullableString(loginUsername);
    out.writeLong(tenantId);
    out.writeNullableString(password);
    out.writeNullableString(sourceAddrs);
    out.writeNullableString(proxyAddrs);
    out.writeBoolean(authenticated);
    out.writeBoolean(authorized);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:11,代码来源:LoginUserContext.java

示例3: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeNullableString(nodeIp);
    out.writeInt(nodePort);
    out.writeNullableString(tenantName);
    out.writeInt(operation.getValue());
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:ModifyTenantNodesRequest.java

示例4: writeTo

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

示例5: writeTo

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

示例6: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeNullableString(tenantName);
    int indexNum = indices == null ? 0 : indices.length;
    out.writeInt(indexNum);
    for (int i = 0; i < indexNum; ++i) {
        out.writeString(indices[i]);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:11,代码来源:MigrateIndexTenantRequest.java

示例7: writeTo

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


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