本文整理汇总了Java中org.apache.ignite.internal.util.typedef.internal.U.writeMap方法的典型用法代码示例。如果您正苦于以下问题:Java U.writeMap方法的具体用法?Java U.writeMap怎么用?Java U.writeMap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.ignite.internal.util.typedef.internal.U
的用法示例。
在下文中一共展示了U.writeMap方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@SuppressWarnings("deprecation")
@Override public void writeExternal(ObjectOutput out) throws IOException {
super.writeExternal(out);
U.writeEnum(out, op);
U.writeString(out, cacheName);
out.writeObject(key);
out.writeObject(val);
out.writeObject(val2);
U.writeMap(out, vals);
out.writeInt(cacheFlagsOn);
}
示例2: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeString(out, name);
U.writeString(out, metaCacheName);
U.writeString(out, dataCacheName);
out.writeInt(blockSize);
out.writeInt(prefetchBlocks);
out.writeInt(streamBufSize);
out.writeInt(perNodeBatchSize);
out.writeInt(perNodeParallelBatchCnt);
U.writeEnum(out, dfltMode);
U.writeMap(out, pathModes);
out.writeLong(maxTaskRangeLen);
out.writeInt(fragmentizerConcurrentFiles);
out.writeBoolean(fragmentizerEnabled);
out.writeLong(fragmentizerThrottlingBlockLen);
out.writeLong(fragmentizerThrottlingDelay);
U.writeString(out, ipcEndpointCfg);
out.writeBoolean(ipcEndpointEnabled);
out.writeInt(mgmtPort);
out.writeInt(seqReadsBeforePrefetch);
out.writeBoolean(colocateMeta);
out.writeBoolean(relaxedConsistency);
out.writeBoolean(updateFileLenOnFlush);
}
示例3: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeString(out, id);
out.writeLong(createTime);
out.writeLong(accessTime);
out.writeInt(maxInactiveInterval);
U.writeMap(out, attrs);
}
示例4: writeObject
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
* @param out Out.
*/
private void writeObject(ObjectOutputStream out) throws IOException {
out.defaultWriteObject();
if (serializeVersion() >= 2)
U.writeMap(out, servicePermissions);
}
示例5: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeUuid(out, id);
U.writeMap(out, attrs);
U.writeCollection(out, addrs);
U.writeCollection(out, hostNames);
out.writeInt(discPort);
// Cluster metrics
byte[] mtr = null;
ClusterMetrics metrics = this.metrics;
if (metrics != null)
mtr = ClusterMetricsSnapshot.serialize(metrics);
U.writeByteArray(out, mtr);
// Cache metrics
Map<Integer, CacheMetrics> cacheMetrics = this.cacheMetrics;
out.writeInt(cacheMetrics == null ? 0 : cacheMetrics.size());
if (!F.isEmpty(cacheMetrics))
for (Map.Entry<Integer, CacheMetrics> m : cacheMetrics.entrySet()) {
out.writeInt(m.getKey());
out.writeObject(m.getValue());
}
out.writeLong(order);
out.writeLong(intOrder);
out.writeObject(ver);
U.writeUuid(out, clientRouterNodeId);
}
示例6: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeByteArray(out, src);
out.writeInt(depMode.ordinal());
U.writeGridUuid(out, clsLdrId);
U.writeString(out, srcClsName);
U.writeString(out, userVer);
U.writeMap(out, ldrParties);
}
示例7: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
out.writeInt(tcpPort);
out.writeInt(0); // Jetty port.
String dfltCacheMode = null;
Map<String, String> cacheMap = null;
if (caches != null) {
cacheMap = U.newHashMap(caches.size());
for (GridClientCacheBean cacheBean : caches) {
if (cacheBean.getName() == null)
dfltCacheMode = cacheBean.getMode().toString();
cacheMap.put(cacheBean.getName(), cacheBean.getMode().toString());
}
}
U.writeString(out, dfltCacheMode);
U.writeMap(out, attrs);
U.writeMap(out, cacheMap);
U.writeCollection(out, tcpAddrs);
U.writeCollection(out, tcpHostNames);
U.writeCollection(out, Collections.emptyList()); // Jetty addresses.
U.writeCollection(out, Collections.emptyList()); // Jetty host names.
U.writeUuid(out, nodeId);
out.writeObject(String.valueOf(consistentId));
out.writeObject(metrics);
out.writeLong(order);
}
示例8: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeString(out, cacheName);
U.writeCollection(out, types);
U.writeMap(out, keyClasses);
U.writeMap(out, valClasses);
U.writeMap(out, fields);
U.writeMap(out, indexes);
}
示例9: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeUuid(out, nodeId);
out.writeLong(nodeOrder);
out.writeLong(updateSeq);
U.writeMap(out, this);
}
示例10: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeString(out, cacheName);
U.writeCollection(out, types);
IgfsUtils.writeStringMap(out, keyClasses);
IgfsUtils.writeStringMap(out, valClasses);
U.writeMap(out, fields);
U.writeMap(out, indexes);
}
示例11: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeString(out, keyType);
U.writeString(out, valType);
U.writeCollection(out, keyFields);
IgfsUtils.writeStringMap(out, qryFlds);
U.writeMap(out, aliases);
U.writeCollection(out, grps);
U.writeString(out, tblName);
U.writeString(out, keyFieldName);
U.writeString(out, valFieldName);
}
示例12: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
out.writeObject(basic);
out.writeObject(metrics);
out.writeObject(spis);
out.writeObject(p2p);
out.writeObject(lifecycle);
out.writeObject(execSvc);
out.writeObject(seg);
U.writeString(out, inclProps);
out.writeObject(inclEvtTypes);
out.writeObject(rest);
U.writeMap(out, userAttrs);
U.writeCollection(out, igfss);
U.writeMap(out, env);
out.writeObject(sysProps);
out.writeObject(atomic);
out.writeObject(txCfg);
out.writeObject(memCfg);
out.writeObject(psCfg);
U.writeString(out, storeSesLsnrs);
U.writeString(out, warmupClos);
out.writeObject(binaryCfg);
U.writeCollection(out, cacheKeyCfgs);
out.writeObject(hadoopCfg);
out.writeObject(sqlConnCfg);
U.writeCollection(out, srvcCfgs);
out.writeObject(dataStorage);
out.writeObject(clnConnCfg);
}
示例13: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeString(out, name);
U.writeString(out, srvcCls);
out.writeInt(totalCnt);
out.writeInt(maxPerNodeCnt);
U.writeString(out, cacheName);
U.writeUuid(out, originNodeId);
U.writeMap(out, topSnapshot);
}
示例14: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeString(out, name);
U.writeEnum(out, mode);
out.writeBoolean(sys);
U.writeMap(out, metrics);
out.writeObject(minHeapSize);
out.writeObject(avgHeapSize);
out.writeObject(maxHeapSize);
out.writeObject(minOffHeapSize);
out.writeObject(avgOffHeapSize);
out.writeObject(maxOffHeapSize);
out.writeObject(minHits);
out.writeObject(avgHits);
out.writeObject(maxHits);
out.writeObject(minMisses);
out.writeObject(avgMisses);
out.writeObject(maxMisses);
out.writeObject(minReads);
out.writeObject(avgReads);
out.writeObject(maxReads);
out.writeObject(minWrites);
out.writeObject(avgWrites);
out.writeObject(maxWrites);
out.writeObject(minQryTime);
out.writeObject(avgQryTime);
out.writeObject(maxQryTime);
out.writeObject(totalQryTime);
out.writeObject(execsQry);
out.writeObject(failsQry);
}
示例15: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeMap(out, primary);
U.writeMap(out, backup);
}