public interface Content
extends java.lang.Cloneable
content component. A content
represents each named field in a document.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Content.Builder |
| Modifier and Type | Method and Description |
|---|---|
Content.Builder |
builder() |
java.lang.String |
getCharset() |
java.lang.String |
getName() |
com.ibm.es.ama.datamodel.Field.FieldType |
getType() |
java.io.Reader |
getValueAsReader(boolean deleteOnClose)
Reading content value as character stream, using
charset for decoding
bytes. |
java.io.InputStream |
getValueAsStream(boolean deleteOnClose)
Reading byte content as byte stream.
|
java.lang.String |
getValueAsString()
Reading content value as
String, using charset for decoding
bytes. |
boolean |
isBytes()
Whether content represents bytes value, either on file, or base64-encoded.
|
boolean |
isEpochTime() |
java.lang.String getName()
content's name.com.ibm.es.ama.datamodel.Field.FieldType getType()
content's type.boolean isEpochTime()
content's value represents unix epoch time.boolean isBytes()
content's value is bytes.java.lang.String getCharset()
charset representing character encoding for
interpreting byte contents.java.io.InputStream getValueAsStream(boolean deleteOnClose)
throws AmaIngestionException
deleteOnClose - InputStream for reading byte content.AmaIngestionExceptionjava.io.Reader getValueAsReader(boolean deleteOnClose)
throws AmaIngestionException
charset for decoding
bytes.deleteOnClose - Reader for reading character stream.AmaIngestionExceptionjava.lang.String getValueAsString()
throws AmaIngestionException
String, using charset for decoding
bytes.String value of the content.AmaIngestionExceptionContent.Builder builder()