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


Java StreamOutput.writeLong方法代码示例

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


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

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVInt(SERIALIZATION_FORMAT);
    out.writeString(id);
    out.writeString(type);
    out.writeBytesReference(source);
    if (routing == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeString(routing);
    }
    if (parent == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeString(parent);
    }
    out.writeLong(version);
    out.writeLong(timestamp);
    out.writeLong(ttl);
    out.writeByte(versionType.getValue());
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:24,代码来源:Translog.java

示例2: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(name);
    out.writeBoolean(committed);
    out.writeBoolean(search);
    out.writeInt(docCount);
    out.writeInt(delDocCount);
    out.writeLong(sizeInBytes);
    out.writeOptionalString(version.toString());
    out.writeOptionalBoolean(compound);
    out.writeOptionalString(mergeId);
    out.writeLong(memoryInBytes);
    
    boolean verbose = ramTree != null;
    out.writeBoolean(verbose);
    if (verbose) {
        writeRamTree(out, ramTree);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:20,代码来源:Segment.java

示例3: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVInt(entries.size());
    for (Entry entry : entries) {
        entry.snapshotId().writeTo(out);
        out.writeBoolean(entry.includeGlobalState());
        out.writeByte(entry.state().value());
        out.writeVInt(entry.indices().size());
        for (String index : entry.indices()) {
            out.writeString(index);
        }
        out.writeLong(entry.startTime());
        out.writeVInt(entry.shards().size());
        for (Map.Entry<ShardId, ShardSnapshotStatus> shardEntry : entry.shards().entrySet()) {
            shardEntry.getKey().writeTo(out);
            out.writeOptionalString(shardEntry.getValue().nodeId());
            out.writeByte(shardEntry.getValue().state().value());
        }
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:21,代码来源:SnapshotsInProgress.java

示例4: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalString(key);
    out.writeBoolean(from != null);
    if (from != null) {
        out.writeBytesRef(from);
    }
    out.writeBoolean(to != null);
    if (to != null) {
        out.writeBytesRef(to);
    }
    out.writeLong(docCount);
    aggregations.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:15,代码来源:InternalBinaryRange.java

示例5: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeInt(requiredSize);
    out.writeInt(shardSize);
    out.writeLong(minDocCount);
    out.writeLong(shardMinDocCount);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:TermsAggregator.java

示例6: 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

示例7: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeLong(refreshInterval);
    out.writeInt(availableProcessors);
    if (out.getVersion().onOrAfter(Version.V_2_1_0)) {
        out.writeInt(allocatedProcessors);
    }
    if (out.getVersion().onOrAfter(Version.V_2_2_0)) {
        out.writeOptionalString(name);
        out.writeOptionalString(arch);
        out.writeOptionalString(version);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:14,代码来源:OsInfo.java

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(collectorName);
    out.writeString(reason);
    out.writeLong(time);
    out.writeVInt(children.size());
    for (CollectorResult child : children) {
        child.writeTo(out);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:11,代码来源:CollectorResult.java

示例9: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalString(path); // total aggregates do not have a path
    out.writeOptionalString(mount);
    out.writeOptionalString(type);
    out.writeLong(total);
    out.writeLong(free);
    out.writeLong(available);
    out.writeOptionalBoolean(spins);
    out.writeLong(limit);
    out.writeLong(limitFree);
    out.writeLong(esUsed);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:14,代码来源:FsInfo.java

示例10: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeOptionalString(index);
    out.writeOptionalString(type);
    out.writeOptionalString(id);
    out.writeLong(timestamp);
    out.writeLong(ttl);
    out.writeLong(now);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:AlreadyExpiredException.java

示例11: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(scriptLang);
    out.writeString(id);
    out.writeByte(versionType.getValue());
    out.writeLong(version);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:GetIndexedScriptRequest.java

示例12: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeInt(tenantProperties.size());
    for (Long tenantId : tenantProperties.keySet()) {
        TenantProperty tenantProperty = tenantProperties.get(tenantId);
        tenantProperty.writeTo(out);
    }
    out.writeLong(maxTenantId);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:TenantMetadata.java

示例13: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
void writeTo(StreamOutput out) throws IOException {
    if (min != null) {
        out.writeBoolean(true);
        out.writeLong(min);
    } else {
        out.writeBoolean(false);
    }
    if (max != null) {
        out.writeBoolean(true);
        out.writeLong(max);
    } else {
        out.writeBoolean(false);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:15,代码来源:ExtendedBounds.java

示例14: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    taskId.writeTo(out);
    out.writeString(type);
    out.writeString(action);
    out.writeOptionalString(description);
    out.writeOptionalNamedWriteable(status);
    out.writeLong(startTime);
    out.writeLong(runningTimeNanos);
    out.writeBoolean(cancellable);
    parentTaskId.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:TaskInfo.java

示例15: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(insertOrder);
    Priority.writeTo(priority, out);
    out.writeText(source);
    out.writeLong(timeInQueue);
    out.writeBoolean(executing);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:PendingClusterTask.java


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