本文整理汇总了Java中org.apache.ignite.internal.util.typedef.internal.U.writeByteArray方法的典型用法代码示例。如果您正苦于以下问题:Java U.writeByteArray方法的具体用法?Java U.writeByteArray怎么用?Java U.writeByteArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.ignite.internal.util.typedef.internal.U
的用法示例。
在下文中一共展示了U.writeByteArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
boolean b = prjPredBytes != null;
out.writeBoolean(b);
if (b) {
U.writeByteArray(out, prjPredBytes);
U.writeString(out, clsName);
out.writeObject(depInfo);
}
else
out.writeObject(prjPred);
out.writeObject(hnd);
out.writeInt(bufSize);
out.writeLong(interval);
out.writeBoolean(autoUnsubscribe);
}
示例2: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
boolean b = filterBytes != null;
out.writeBoolean(b);
if (b) {
U.writeByteArray(out, filterBytes);
U.writeString(out, clsName);
out.writeObject(depInfo);
}
else
out.writeObject(filter);
out.writeObject(types);
}
示例3: close
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void close() throws IOException {
oos.flush();
U.writeByteArray(out, bos.internalArray(), bos.size());
oos.close();
}
示例4: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
if (delims != null) {
out.writeBoolean(true);
out.writeInt(delims.length);
for (byte[] delim : delims)
U.writeByteArray(out, delim);
}
else
out.writeBoolean(false);
}
示例5: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeByteArray(out, metrics);
out.writeInt(clientMetrics != null ? clientMetrics.size() : -1);
if (clientMetrics != null) {
for (byte[] arr : clientMetrics)
U.writeByteArray(out, arr);
}
}
示例6: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeGridUuid(out, id);
out.writeLong(field1);
out.writeLong(field2);
U.writeString(out, str);
U.writeByteArray(out, bytes);
}
示例7: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(major);
out.writeByte(minor);
out.writeByte(maintenance);
out.writeLong(revTs);
U.writeByteArray(out, revHash);
}
示例8: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
jobId.writeExternal(out);
out.writeLong(msgId);
out.writeInt(reducer);
out.writeInt(off);
U.writeByteArray(out, buf);
}
示例9: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
jobId.writeExternal(out);
out.writeInt(reducer);
out.writeInt(cnt);
U.writeByteArray(out, buf);
out.writeInt(dataLen);
}
示例10: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
U.writeString(out, jobName);
U.writeString(out, user);
out.writeBoolean(hasCombiner);
out.writeInt(numReduces);
IgfsUtils.writeStringMap(out, props);
U.writeByteArray(out, credentials);
}
示例11: 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);
}
示例12: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
out.writeInt(successStatus);
U.writeByteArray(out, sesTokBytes);
U.writeString(out, sesTokStr);
U.writeString(out, err);
out.writeObject(obj);
}
示例13: writeExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
out.writeBoolean(depEnabled);
if (depEnabled) {
U.writeByteArray(out, topicBytes);
U.writeByteArray(out, predBytes);
U.writeString(out, clsName);
out.writeObject(depInfo);
}
else {
out.writeObject(topic);
out.writeObject(pred);
}
}
示例14: writeExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
U.writeString(out, path);
out.writeLong(off);
out.writeLong(size);
out.writeLong(lastModified);
out.writeBoolean(zipped);
U.writeByteArray(out, data);
}
示例15: writeObject
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
* Serialize this message.
*/
private void writeObject(ObjectOutputStream out) throws IOException {
out.defaultWriteObject();
U.writeByteArray(out, addr.getAddress());
}