use of com.yahoo.document.DataType in project vespa by vespa-engine.
the class JsonWriterTestCase method registerSetDocumentType.
private void registerSetDocumentType() {
DocumentType x = new DocumentType("testset");
DataType d = new WeightedSetDataType(DataType.STRING, true, true);
x.addField(new Field("actualset", d));
types.registerDocumentType(x);
}
use of com.yahoo.document.DataType in project vespa by vespa-engine.
the class JsonWriterTestCase method registerMapToStringToArrayDocumentType.
private void registerMapToStringToArrayDocumentType() {
DocumentType x = new DocumentType("testMapStringToArrayOfInt");
DataType value = new ArrayDataType(DataType.INT);
DataType d = new MapDataType(DataType.STRING, value);
x.addField(new Field("actualMapStringToArrayOfInt", d));
types.registerDocumentType(x);
}
use of com.yahoo.document.DataType in project vespa by vespa-engine.
the class JsonWriterTestCase method registerMultiPositionDocumentType.
private void registerMultiPositionDocumentType() {
DocumentType x = new DocumentType("testmultipos");
DataType d = new ArrayDataType(PositionDataType.INSTANCE);
x.addField(new Field("multipos", d));
types.registerDocumentType(x);
}
use of com.yahoo.document.DataType in project vespa by vespa-engine.
the class JsonWriterTestCase method registerSinglePositionDocumentType.
private void registerSinglePositionDocumentType() {
DocumentType x = new DocumentType("testsinglepos");
DataType d = PositionDataType.INSTANCE;
x.addField(new Field("singlepos", d));
types.registerDocumentType(x);
}
use of com.yahoo.document.DataType in project vespa by vespa-engine.
the class JsonWriterTestCase method registerRawDocumentType.
private void registerRawDocumentType() {
DocumentType x = new DocumentType("testraw");
DataType d = DataType.RAW;
x.addField(new Field("actualraw", d));
types.registerDocumentType(x);
}
Aggregations