當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。