本文整理汇总了Java中org.apache.ignite.internal.util.typedef.internal.U.readByteArray方法的典型用法代码示例。如果您正苦于以下问题:Java U.readByteArray方法的具体用法?Java U.readByteArray怎么用?Java U.readByteArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.ignite.internal.util.typedef.internal.U
的用法示例。
在下文中一共展示了U.readByteArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
boolean b = in.readBoolean();
if (b) {
prjPredBytes = U.readByteArray(in);
clsName = U.readString(in);
depInfo = (GridDeploymentInfo)in.readObject();
}
else
prjPred = (IgnitePredicate<ClusterNode>)in.readObject();
hnd = (GridContinuousHandler)in.readObject();
bufSize = in.readInt();
interval = in.readLong();
autoUnsubscribe = in.readBoolean();
}
示例2: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
id = in.readInt();
clsName = in.readUTF();
bytes = U.readByteArray(in);
}
示例3: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
id = U.readGridUuid(in);
field1 = in.readLong();
field2 = in.readLong();
str = U.readString(in);
bytes = U.readByteArray(in);
}
示例4: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
metrics = U.readByteArray(in);
int clientMetricsSize = in.readInt();
if (clientMetricsSize >= 0) {
clientMetrics = new ArrayList<>(clientMetricsSize);
for (int i = 0; i < clientMetricsSize; i++)
clientMetrics.add(U.readByteArray(in));
}
}
示例5: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
major = in.readByte();
minor = in.readByte();
maintenance = in.readByte();
revTs = in.readLong();
revHash = U.readByteArray(in);
}
示例6: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
jobId = new HadoopJobId();
jobId.readExternal(in);
msgId = in.readLong();
reducer = in.readInt();
off = in.readInt();
buf = U.readByteArray(in);
}
示例7: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
jobId = new HadoopJobId();
jobId.readExternal(in);
reducer = in.readInt();
cnt = in.readInt();
buf = U.readByteArray(in);
bufLen = buf != null ? buf.length : 0;
dataLen = in.readInt();
}
示例8: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
jobName = U.readString(in);
user = U.readString(in);
hasCombiner = in.readBoolean();
numReduces = in.readInt();
props = IgfsUtils.readStringMap(in);
credentials = U.readByteArray(in);
}
示例9: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
src = U.readByteArray(in);
depMode = DeploymentMode.fromOrdinal(in.readInt());
clsLdrId = U.readGridUuid(in);
srcClsName = U.readString(in);
userVer = U.readString(in);
ldrParties = U.readMap(in);
}
示例10: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
successStatus = in.readInt();
sesTokBytes = U.readByteArray(in);
sesTokStr = U.readString(in);
err = U.readString(in);
obj = in.readObject();
}
示例11: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
boolean b = in.readBoolean();
if (b) {
filterBytes = U.readByteArray(in);
clsName = U.readString(in);
depInfo = (GridDeploymentInfo)in.readObject();
}
else
filter = (IgnitePredicate<Event>)in.readObject();
types = (int[])in.readObject();
}
示例12: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
depEnabled = in.readBoolean();
if (depEnabled) {
topicBytes = U.readByteArray(in);
predBytes = U.readByteArray(in);
clsName = U.readString(in);
depInfo = (GridDeploymentInfoBean)in.readObject();
}
else {
topic = in.readObject();
pred = (IgniteBiPredicate<UUID, Object>)in.readObject();
}
}
示例13: VisorDataTransferObjectInput
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
* @param in Target input.
* @throws IOException If an I/O error occurs.
*/
public VisorDataTransferObjectInput(ObjectInput in) throws IOException {
byte[] buf = U.readByteArray(in);
/* */
GridByteArrayInputStream bis = new GridByteArrayInputStream(buf);
ois = new ObjectInputStream(bis);
}
示例14: readExternalData
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
path = U.readString(in);
off = in.readLong();
size = in.readLong();
lastModified = in.readLong();
zipped = in.readBoolean();
data = U.readByteArray(in);
}
示例15: readExternal
import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException {
start = in.readInt();
data = U.readByteArray(in);
}