3.2. ProtoStream 共通タイプのクエリー
BigInteger や BigDecimal などの ProtoStream 共通タイプとしてデータを保存するキャッシュで Ickle クエリーを実行します。
手順
次の例のように、インデックスアノテーションをクラスに追加します。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow dependOn属性をCommonTypes.classに設定して、生成された Protobuf スキーマがBigIntegerやBigDecimalなどのCommonTypes型を参照および使用できることを示します。@AutoProtoSchemaBuilder(includeClasses = CalculusIndexed.class, dependsOn = CommonTypes.class, schemaFilePath = "/protostream", schemaFileName = "calculus-indexed.proto", schemaPackageName = "lab.indexed") public interface CalculusIndexedSchema extends GeneratedSchema { }@AutoProtoSchemaBuilder(includeClasses = CalculusIndexed.class, dependsOn = CommonTypes.class, schemaFilePath = "/protostream", schemaFileName = "calculus-indexed.proto", schemaPackageName = "lab.indexed") public interface CalculusIndexedSchema extends GeneratedSchema { }Copy to Clipboard Copied! Toggle word wrap Toggle overflow クエリーを実行します。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow