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