Java Code Examples for org.apache.ignite.binary.BinaryReader#readShort()
The following examples show how to use
org.apache.ignite.binary.BinaryReader#readShort() .
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: IgniteTopic.java From joyqueue with Apache License 2.0 | 6 votes |
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException { //this.id = reader.readString(COLUMN_ID); String namespace = reader.readString(COLUMN_NAMESPACE); String topicCode = reader.readString(COLUMN_CODE); this.name = new TopicName(topicCode, namespace); this.partitions = reader.readShort(COLUMN_PARTITIONS); this.type = Type.valueOf(reader.readByte(COLUMN_TYPE)); String priorityPartitionsStr = reader.readString(COLUMN_PRIORITY_PARTITIONS); this.priorityPartitions = new TreeSet<>(); if (StringUtils.isNoneEmpty(priorityPartitionsStr) && priorityPartitionsStr.length() > 2) { this.priorityPartitions.addAll( (Arrays.stream(priorityPartitionsStr.substring(1, priorityPartitionsStr.length() - 1).split(",")). map(s -> Short.parseShort(s.trim())).collect(Collectors.toSet())) ); } }
Example 2
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 3
Source File: IgniteComputeConfigVariationsFullApiTest.java From ignite with Apache License 2.0 | 6 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { arg = reader.readObject("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 4
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 5
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 6
Source File: BinaryMarshallerSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { b = reader.readByte("_b"); s = reader.readShort("_s"); i = reader.readInt("_i"); l = reader.readLong("_l"); f = reader.readFloat("_f"); d = reader.readDouble("_d"); c = reader.readChar("_c"); bool = reader.readBoolean("_bool"); str = reader.readString("_str"); uuid = reader.readUuid("_uuid"); date = reader.readDate("_date"); ts = reader.readTimestamp("_ts"); time = reader.readTime("_time"); bArr = reader.readByteArray("_bArr"); sArr = reader.readShortArray("_sArr"); iArr = reader.readIntArray("_iArr"); lArr = reader.readLongArray("_lArr"); fArr = reader.readFloatArray("_fArr"); dArr = reader.readDoubleArray("_dArr"); cArr = reader.readCharArray("_cArr"); boolArr = reader.readBooleanArray("_boolArr"); strArr = reader.readStringArray("_strArr"); uuidArr = reader.readUuidArray("_uuidArr"); dateArr = reader.readDateArray("_dateArr"); timeArr = reader.readTimeArray("_timeArr"); objArr = reader.readObjectArray("_objArr"); col = reader.readCollection("_col"); map = reader.readMap("_map"); enumVal = reader.readEnum("_enumVal"); enumArr = reader.readEnumArray("_enumArr"); simple = reader.readObject("_simple"); binary = reader.readObject("_binary"); BinaryRawReader raw = reader.rawReader(); bRaw = raw.readByte(); sRaw = raw.readShort(); iRaw = raw.readInt(); lRaw = raw.readLong(); fRaw = raw.readFloat(); dRaw = raw.readDouble(); cRaw = raw.readChar(); boolRaw = raw.readBoolean(); strRaw = raw.readString(); uuidRaw = raw.readUuid(); dateRaw = raw.readDate(); tsRaw = raw.readTimestamp(); timeRaw = raw.readTime(); bArrRaw = raw.readByteArray(); sArrRaw = raw.readShortArray(); iArrRaw = raw.readIntArray(); lArrRaw = raw.readLongArray(); fArrRaw = raw.readFloatArray(); dArrRaw = raw.readDoubleArray(); cArrRaw = raw.readCharArray(); boolArrRaw = raw.readBooleanArray(); strArrRaw = raw.readStringArray(); uuidArrRaw = raw.readUuidArray(); dateArrRaw = raw.readDateArray(); timeArrRaw = raw.readTimeArray(); objArrRaw = raw.readObjectArray(); colRaw = raw.readCollection(); mapRaw = raw.readMap(); enumValRaw = raw.readEnum(); enumArrRaw = raw.readEnumArray(); simpleRaw = raw.readObject(); binaryRaw = raw.readObject(); }