public class GridGgfsByteDelimiterRecordResolver extends Object implements GridGgfsRecordResolver, Externalizable
Note that you can use GridGgfsStringDelimiterRecordResolver if your delimiter is a plain string.
| Constructor and Description |
|---|
GridGgfsByteDelimiterRecordResolver()
Empty constructor required for
Externalizable support. |
GridGgfsByteDelimiterRecordResolver(byte[]... delims)
Creates delimiter-based record resolver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
readExternal(ObjectInput in) |
GridGgfsFileRange |
resolveRecords(GridGgfs ggfs,
GridGgfsInputStream stream,
GridGgfsFileRange suggestedRecord)
Adjusts record start offset and length.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GridGgfsByteDelimiterRecordResolver()
Externalizable support.public GridGgfsByteDelimiterRecordResolver(byte[]... delims)
delims - Delimiters.public GridGgfsFileRange resolveRecords(GridGgfs ggfs, GridGgfsInputStream stream, GridGgfsFileRange suggestedRecord) throws GridException, IOException
resolveRecords in interface GridGgfsRecordResolverggfs - GGFS instance to use.stream - Input stream for split file.suggestedRecord - Suggested file system record.null, original record is ignored.GridException - If resolve failed.IOException - If resolve failed.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2014. All rights reserved.