public class FileRecord extends Object implements org.apache.pulsar.functions.api.Record<byte[]>
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_ABSOLUTE_PATH |
static String |
FILE_MODIFIED_TIME |
static String |
FILE_NAME |
| Constructor and Description |
|---|
FileRecord(File srcFile,
int lineNumber,
byte[] value) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getKey() |
Map<String,String> |
getProperties() |
byte[] |
getValue() |
void |
setProperty(String key,
String value) |
public static final String FILE_NAME
public static final String FILE_ABSOLUTE_PATH
public static final String FILE_MODIFIED_TIME
public FileRecord(File srcFile, int lineNumber, byte[] value)
public Optional<String> getKey()
getKey in interface org.apache.pulsar.functions.api.Record<byte[]>public byte[] getValue()
getValue in interface org.apache.pulsar.functions.api.Record<byte[]>public Map<String,String> getProperties()
getProperties in interface org.apache.pulsar.functions.api.Record<byte[]>Copyright © 2017–2021 Apache Software Foundation. All rights reserved.