Package com.hazelcast.jet.pipeline.file
Class TextFileFormat
- java.lang.Object
-
- com.hazelcast.jet.pipeline.file.TextFileFormat
-
- All Implemented Interfaces:
FileFormat<java.lang.String>
,java.io.Serializable
public class TextFileFormat extends java.lang.Object implements FileFormat<java.lang.String>
FileFormat
for text files where the whole file is oneString
data item. SeeFileFormat.text()
for more details.- Since:
- Jet 4.4
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FORMAT_TXT
Format ID for text files.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.charset.Charset
charset()
Returns the configured character encoding.boolean
equals(java.lang.Object o)
java.lang.String
format()
Returns the name of the file format.int
hashCode()
-
-
-
Field Detail
-
FORMAT_TXT
public static final java.lang.String FORMAT_TXT
Format ID for text files.- See Also:
- Constant Field Values
-
-
Method Detail
-
charset
@Nonnull public java.nio.charset.Charset charset()
Returns the configured character encoding.
-
format
@Nonnull public java.lang.String format()
Description copied from interface:FileFormat
Returns the name of the file format. The convention is to use the well-known filename suffix or, if there is none, a short-form name of the format.- Specified by:
format
in interfaceFileFormat<java.lang.String>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-