public class DocumentSerialization
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.io.serializer.Serialization<org.ojai.Document>
Constructor and Description |
---|
DocumentSerialization() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.Class<?> arg0)
Allows clients to test whether this serialization supports the given class.
|
org.apache.hadoop.io.serializer.Deserializer<org.ojai.Document> |
getDeserializer(java.lang.Class<org.ojai.Document> arg0)
Returns a deserializer of the document.
|
org.apache.hadoop.io.serializer.Serializer<org.ojai.Document> |
getSerializer(java.lang.Class<org.ojai.Document> arg0)
Returns a serializer of document.
|
public boolean accept(java.lang.Class<?> arg0)
accept
in interface org.apache.hadoop.io.serializer.Serialization<org.ojai.Document>
public org.apache.hadoop.io.serializer.Deserializer<org.ojai.Document> getDeserializer(java.lang.Class<org.ojai.Document> arg0)
getDeserializer
in interface org.apache.hadoop.io.serializer.Serialization<org.ojai.Document>
Serialization.getDeserializer(java.lang.Class)
public org.apache.hadoop.io.serializer.Serializer<org.ojai.Document> getSerializer(java.lang.Class<org.ojai.Document> arg0)
getSerializer
in interface org.apache.hadoop.io.serializer.Serialization<org.ojai.Document>
Serialization.getSerializer(java.lang.Class)