@Override public Decoder getDecoder(InputStream is) { // compression isn't enabled if (this.compression == null) { return useDefaultDecoder ? new IndexKeyValueDecoder(is) : new BinaryCompatibleIndexKeyValueDecoder(is); } // there is compression, so we get the standard decoder to handle reading those kvs Decoder decoder = super.getDecoder(is); // compression is on, reqturn our custom decoder return useDefaultDecoder ? new CompressedIndexKeyValueDecoder(is, decoder) : new BinaryCompatibleCompressedIndexKeyValueDecoder(is, decoder); }
@Override public Decoder getDecoder(InputStream is) { // compression isn't enabled if (this.compression == null) { return useDefaultDecoder ? new IndexKeyValueDecoder(is) : new BinaryCompatibleIndexKeyValueDecoder(is); } // there is compression, so we get the standard decoder to handle reading those kvs Decoder decoder = super.getDecoder(is); // compression is on, reqturn our custom decoder return useDefaultDecoder ? new CompressedIndexKeyValueDecoder(is, decoder) : new BinaryCompatibleCompressedIndexKeyValueDecoder(is, decoder); }
@Override public Decoder getDecoder(InputStream is) { // compression isn't enabled if (this.compression == null) { return useDefaultDecoder ? new IndexKeyValueDecoder(is) : new BinaryCompatibleIndexKeyValueDecoder(is); } // there is compression, so we get the standard decoder to handle reading those kvs Decoder decoder = super.getDecoder(is); // compression is on, reqturn our custom decoder return useDefaultDecoder ? new CompressedIndexKeyValueDecoder(is, decoder) : new BinaryCompatibleCompressedIndexKeyValueDecoder(is, decoder); }
@Override public Decoder getDecoder(InputStream is) { // compression isn't enabled if (this.compression == null) { return new IndexKeyValueDecoder(is); } // there is compression, so we get the standard decoder to handle reading those kvs Decoder decoder = super.getDecoder(is); // compression is on, reqturn our custom decoder return new CompressedIndexKeyValueDecoder(is, decoder); }