blob: b6ca66cb00ebf213006bcc036a8c9ddbb1b1b565 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.fastsearch;
import com.yahoo.data.access.Inspector;
import com.yahoo.data.access.simple.Value;
import com.yahoo.prelude.hitfield.RawBase64;
/**
* Represents a binary field that is presented as base64
* @author baldersheim
*/
public class Base64DataField extends DocsumField {
public Base64DataField(String name) {
super(name);
}
@Override
public String toString() {
return "field " + getName() + " type raw";
}
@Override
public Object convert(Inspector value) {
return new RawBase64(value.asData(Value.empty().asData()));
}
}
|