schemaIds.add(schema.schemaId());
schemaIds.add(schema.schemaId());
out, (unused, s) -> { w.writeInt(s.schemaId());
writer.writeInt(schema.schemaId());
/** * Gets the schema. * * @param cacheObjProc Cache object processor. * @param typeId Type id. * @param schemaId Schema id. */ public static int[] getSchema(CacheObjectBinaryProcessorImpl cacheObjProc, int typeId, int schemaId) { assert cacheObjProc != null; BinarySchemaRegistry schemaReg = cacheObjProc.binaryContext().schemaRegistry(typeId); BinarySchema schema = schemaReg.schema(schemaId); if (schema == null) { BinaryTypeImpl meta = (BinaryTypeImpl)cacheObjProc.metadata(typeId); if (meta != null) { for (BinarySchema typeSchema : meta.metadata().schemas()) { if (schemaId == typeSchema.schemaId()) { schema = typeSchema; break; } } } if (schema != null) { schemaReg.addSchema(schemaId, schema); } } return schema == null ? null : schema.fieldIds(); }
Collections.singleton(curSchema), false, null), writer.failIfUnregistered()); schemaReg.addSchema(curSchema.schemaId(), curSchema);
schemaIds.add(schema.schemaId());
schemaIds.add(schema.schemaId());
out, (unused, s) -> { w.writeInt(s.schemaId());
writer.writeInt(schema.schemaId());
/** * Gets the schema. * * @param cacheObjProc Cache object processor. * @param typeId Type id. * @param schemaId Schema id. */ public static int[] getSchema(CacheObjectBinaryProcessorImpl cacheObjProc, int typeId, int schemaId) { assert cacheObjProc != null; BinarySchemaRegistry schemaReg = cacheObjProc.binaryContext().schemaRegistry(typeId); BinarySchema schema = schemaReg.schema(schemaId); if (schema == null) { BinaryTypeImpl meta = (BinaryTypeImpl)cacheObjProc.metadata(typeId); if (meta != null) { for (BinarySchema typeSchema : meta.metadata().schemas()) { if (schemaId == typeSchema.schemaId()) { schema = typeSchema; break; } } } if (schema != null) { schemaReg.addSchema(schemaId, schema); } } return schema == null ? null : schema.fieldIds(); }
Collections.singleton(curSchema), false, null), writer.failIfUnregistered()); schemaReg.addSchema(curSchema.schemaId(), curSchema);