當前位置: 首頁>>代碼示例>>Java>>正文


Java StreamOutput.writeString方法代碼示例

本文整理匯總了Java中org.elasticsearch.common.io.stream.StreamOutput.writeString方法的典型用法代碼示例。如果您正苦於以下問題:Java StreamOutput.writeString方法的具體用法?Java StreamOutput.writeString怎麽用?Java StreamOutput.writeString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.elasticsearch.common.io.stream.StreamOutput的用法示例。


在下文中一共展示了StreamOutput.writeString方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(index);
    out.writeString(type);
    out.writeString(id);
    out.writeBoolean(exists);
    if (explanation == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        writeExplanation(out, explanation);
    }
    if (getResult == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        getResult.writeTo(out);
    }
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:21,代碼來源:ExplainResponse.java

示例2: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(type);
    out.writeString(id);
    out.writeOptionalString(routing);
    out.writeOptionalString(parent);
    out.writeOptionalString(preference);

    out.writeBoolean(refresh);
    out.writeOptionalStringArray(storedFields);
    out.writeBoolean(realtime);
    out.writeByte(versionType.getValue());
    out.writeLong(version);
    out.writeOptionalWriteable(fetchSourceContext);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:17,代碼來源:GetRequest.java

示例3: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeFloat(minScore);

    out.writeBytesReference(querySource);

    out.writeVInt(types.length);
    for (String type : types) {
        out.writeString(type);
    }
    if (filteringAliases != null) {
        out.writeVInt(filteringAliases.length);
        for (String alias : filteringAliases) {
            out.writeString(alias);
        }
    } else {
        out.writeVInt(0);
    }
    out.writeVLong(nowInMillis);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:22,代碼來源:ShardExistsRequest.java

示例4: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeBytesReference(source);

    out.writeVInt(types.length);
    for (String type : types) {
        out.writeString(type);
    }
    if (filteringAliases != null) {
        out.writeVInt(filteringAliases.length);
        for (String alias : filteringAliases) {
            out.writeString(alias);
        }
    } else {
        out.writeVInt(0);
    }

    out.writeBoolean(explain);
    out.writeBoolean(rewrite);
    out.writeVLong(nowInMillis);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:23,代碼來源:ShardValidateQueryRequest.java

示例5: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeGenericValue(value);
    out.writeVInt(fieldsBoosts.size());
    for (Map.Entry<String, Float> fieldsEntry : fieldsBoosts.entrySet()) {
        out.writeString(fieldsEntry.getKey());
        out.writeFloat(fieldsEntry.getValue());
    }
    type.writeTo(out);
    operator.writeTo(out);
    out.writeOptionalString(analyzer);
    out.writeVInt(slop);
    out.writeOptionalWriteable(fuzziness);
    out.writeVInt(prefixLength);
    out.writeVInt(maxExpansions);
    out.writeOptionalString(minimumShouldMatch);
    out.writeOptionalString(fuzzyRewrite);
    out.writeOptionalBoolean(useDisMax);
    out.writeOptionalFloat(tieBreaker);
    out.writeBoolean(lenient);
    out.writeOptionalFloat(cutoffFrequency);
    zeroTermsQuery.writeTo(out);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:24,代碼來源:MultiMatchQueryBuilder.java

示例6: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(clusterName);
    out.writeByte(clusterHealthStatus.value());
    clusterStateHealth.writeTo(out);
    out.writeInt(numberOfPendingTasks);
    out.writeBoolean(timedOut);
    out.writeInt(numberOfInFlightFetch);
    out.writeInt(delayedUnassignedShards);
    taskMaxWaitingTime.writeTo(out);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:13,代碼來源:ClusterHealthResponse.java

示例7: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    if (index == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeString(index);
    }
    out.writeVInt(shardId);
    out.writeException(reason);
    RestStatus.writeTo(out, status);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:13,代碼來源:DefaultShardOperationFailedException.java

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeLong(recoveryId);
    shardId.writeTo(out);

    out.writeVInt(phase1FileNames.size());
    for (String phase1FileName : phase1FileNames) {
        out.writeString(phase1FileName);
    }

    out.writeVInt(phase1FileSizes.size());
    for (Long phase1FileSize : phase1FileSizes) {
        out.writeVLong(phase1FileSize);
    }

    out.writeVInt(phase1ExistingFileNames.size());
    for (String phase1ExistingFileName : phase1ExistingFileNames) {
        out.writeString(phase1ExistingFileName);
    }

    out.writeVInt(phase1ExistingFileSizes.size());
    for (Long phase1ExistingFileSize : phase1ExistingFileSizes) {
        out.writeVLong(phase1ExistingFileSize);
    }
    out.writeVInt(totalTranslogOps);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:28,代碼來源:RecoveryFilesInfoRequest.java

示例9: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    shardId.writeTo(out);
    out.writeString(allocationId);
    out.writeVLong(primaryTerm);
    out.writeString(message);
    out.writeException(failure);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:10,代碼來源:ShardStateAction.java

示例10: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);

    out.writeString(lang == null ? "" : lang);
    out.writeString(id);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:8,代碼來源:GetStoredScriptRequest.java

示例11: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(type);
    out.writeString(id);
    out.writeOptionalString(routing());
    out.writeOptionalString(parent());
    out.writeLong(version);
    out.writeByte(versionType.getValue());
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:11,代碼來源:DeleteRequest.java

示例12: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(name);
    out.writeOptionalString(filter);
    out.writeOptionalString(indexRouting);
    out.writeOptionalString(searchRouting);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:8,代碼來源:Alias.java

示例13: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(status);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:5,代碼來源:TransportTasksActionTests.java

示例14: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(interval);
    out.writeString(timeZone.getID());
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:6,代碼來源:TimeZoneRounding.java

示例15: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    shrinkIndexRequest.writeTo(out);
    out.writeString(sourceIndex);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:7,代碼來源:ShrinkRequest.java


注:本文中的org.elasticsearch.common.io.stream.StreamOutput.writeString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。