Java Code Examples for org.apache.ignite.binary.BinaryReader#readInt()
The following examples show how to use
org.apache.ignite.binary.BinaryReader#readInt() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IgniteComputeConfigVariationsFullApiTest.java From ignite with Apache License 2.0 | 6 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { Object arg = reader.readObject("arg"); setArguments(arg); isVal = reader.readBoolean("isVal"); bVal = reader.readByte("bVal"); cVal = reader.readChar("cVal"); sVal = reader.readShort("sVal"); intVal = reader.readInt("intVal"); lVal = reader.readLong("lVal"); fltVal = reader.readFloat("fltVal"); dblVal = reader.readDouble("dblVal"); strVal = reader.readString("strVal"); arrVal = reader.readObjectArray("arrVal"); eVal = reader.readEnum("eVal"); }
Example 2
Source File: IgniteComputeConfigVariationsFullApiTest.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { isVal = reader.readBoolean("isVal"); bVal = reader.readByte("bVal"); cVal = reader.readChar("cVal"); sVal = reader.readShort("sVal"); intVal = reader.readInt("intVal"); lVal = reader.readLong("lVal"); fltVal = reader.readFloat("fltVal"); dblVal = reader.readDouble("dblVal"); strVal = reader.readString("strVal"); arrVal = reader.readObjectArray("arrVal"); eVal = reader.readEnum("eVal"); }
Example 3
Source File: IgniteComputeConfigVariationsFullApiTest.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { isVal = reader.readBoolean("isVal"); bVal = reader.readByte("bVal"); cVal = reader.readChar("cVal"); sVal = reader.readShort("sVal"); intVal = reader.readInt("intVal"); lVal = reader.readLong("lVal"); fltVal = reader.readFloat("fltVal"); dblVal = reader.readDouble("dblVal"); strVal = reader.readString("strVal"); arrVal = reader.readObjectArray("arrVal"); eVal = reader.readEnum("eVal"); }
Example 4
Source File: IgniteBroker.java From joyqueue with Apache License 2.0 | 5 votes |
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException { this.id = reader.readInt(COLUMN_BROKER_ID); this.ip = reader.readString(COLUMN_IP); this.port = reader.readInt(COLUMN_PORT); this.dataCenter = reader.readString(COLUMN_DATA_CENTER); this.retryType = reader.readString(COLUMN_RETRY_TYPE); this.permission = PermissionEnum.value(reader.readString(COLUMN_PERMISSION)); }
Example 5
Source File: IgnitePartitionGroup.java From joyqueue with Apache License 2.0 | 5 votes |
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException { //this.id = reader.readString(COLUMN_ID); this.topic = new TopicName(reader.readString(COLUMN_TOPIC), reader.readString(COLUMN_NAMESPACE)); this.group = reader.readInt(COLUMN_GROUP); this.leader = reader.readInt(COLUMN_LEADER); this.term = reader.readInt(COLUMN_TERM); String isrStr = reader.readString(COLUMN_ISR); String partitionsStr = reader.readString(COLUMN_PARTITIONS); String replicasStr = reader.readString(COLUMN_REPLICAS); String column_learnersStr = reader.readString(COLUMN_LEARNERS); this.isrs = new TreeSet<>(); this.learners = new TreeSet<>(); this.partitions = new TreeSet<>(); this.replicas = new TreeSet<>(); if (StringUtils.isNoneEmpty(isrStr) && isrStr.length() > 2) { isrs.addAll(Arrays.stream(isrStr.substring(1, isrStr.length() - 1).split(",")).map(s -> Integer.parseInt(s.trim())).collect(Collectors.toList())); } if (StringUtils.isNoneEmpty(column_learnersStr) && column_learnersStr.length() > 2) { this.learners.addAll(Arrays.stream(isrStr.substring(1, column_learnersStr.length() - 1).split(",")).map(s -> Integer.parseInt(s.trim())).collect(Collectors.toList())); } if (StringUtils.isNoneEmpty(partitionsStr) && partitionsStr.length() > 2) { this.partitions.addAll(Arrays.stream(partitionsStr.substring(1, partitionsStr.length() - 1).split(",")).map(s -> Short.parseShort(s.trim())).collect(Collectors.toList())); } if (StringUtils.isNoneEmpty(replicasStr) && replicasStr.length() > 2) { this.replicas.addAll(Arrays.stream(replicasStr.substring(1, replicasStr.length() - 1).split(",")).map(s -> Integer.parseInt(s.trim())).collect(Collectors.toList())); } this.setElectType(ElectType.value(reader.readString(COLUMN_ELECT_TYPE))); this.recLeader = reader.readInt(COLUMN_REC_LEADER); }
Example 6
Source File: IgniteNodeInfo.java From vertx-ignite with Apache License 2.0 | 5 votes |
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException { String host = reader.readString("host"); int port = reader.readInt("port"); byte[] bytes = reader.readByteArray("meta"); nodeInfo = new NodeInfo(host, port, bytes != null ? new JsonObject(Buffer.buffer(bytes)) : null); }
Example 7
Source File: PersonNoIndex.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { id = reader.readInt("id"); orgId = reader.readInt("orgId"); firstName = reader.readString("firstName"); lastName = reader.readString("lastName"); salary = reader.readDouble("salary"); }
Example 8
Source File: BinaryArrayIdentityResolverSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { a = reader.readInt("a"); b = reader.readString("b"); c = reader.readLong("c"); }
Example 9
Source File: BinaryMarshallerSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { val = reader.readInt("val"); rawVal = reader.rawReader().readInt(); }
Example 10
Source File: AbstractBinaryMetadataRegistrationTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { this.val = reader.readInt("val"); }
Example 11
Source File: SampleKey.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { id = reader.readInt("id"); }
Example 12
Source File: BinaryMarshallerSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(Object obj, BinaryReader reader) throws BinaryObjectException { CustomSerializedObject1 o = (CustomSerializedObject1)obj; o.val = reader.readInt("val"); }
Example 13
Source File: GridCacheBinaryObjectsAbstractSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { val = reader.readInt("val"); }
Example 14
Source File: SampleValue.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { id = reader.readInt("id"); }
Example 15
Source File: IgniteMessage.java From joyqueue with Apache License 2.0 | 4 votes |
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException { reader.readInt(COLUMN_MESSAGE_ID); type = reader.readString(COLUMN_TYPE); content = reader.readString(COLUMN_CONTENT); }
Example 16
Source File: BinarySerializationQuerySelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { val = reader.readInt("val"); }
Example 17
Source File: CacheOffheapBatchIndexingBaseTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { id = reader.readInt("id"); name = reader.readString("name"); }
Example 18
Source File: GridCacheBinaryObjectsAbstractDataStreamerSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { val = reader.readInt("val"); }
Example 19
Source File: GridDataStreamerImplSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { val = reader.readInt("val"); }
Example 20
Source File: GridCacheBinaryObjectsAbstractMultiThreadedSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { val = reader.readInt("val"); }