Package org.rcsb.cif.binary.encoding
Interface Encoding<H extends EncodedData<?>,L extends EncodedData<?>>
- Type Parameters:
H- the 'high'-level array of data (thinkStringArray)L- the 'low'-level array of data (thinkByteArray)
- All Known Implementing Classes:
ByteArrayEncoding,DeltaEncoding,FixedPointEncoding,IntegerPackingEncoding,IntervalQuantizationEncoding,RunLengthEncoding,StringArrayEncoding
public interface Encoding<H extends EncodedData<?>,L extends EncodedData<?>>
Represents a single encoding or decoding step for a column.
-
Method Details
-
decode
Move one step up the encoding deque. One step closer to the original representation of the data.- Parameters:
data- the container to decode- Returns:
- the decoded information
-
encode
Move one step down the encoding deque. One step closer to aByteArrayrepresentation.- Parameters:
data- the container to encode- Returns:
- the decoded information
-
getMapRepresentation
Converts this encoding to its map representation that can be serialized as BinaryCif.- Returns:
- a Map that contains all encoding information
-