2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.datastore.node.utils.stream;
10 final class TokenTypes {
11 private TokenTypes() {
12 throw new UnsupportedOperationException();
15 static final byte SIGNATURE_MARKER = (byte) 0xab;
18 * Original stream version. Uses a per-stream dictionary for strings. QNames are serialized as three strings.
20 static final short LITHIUM_VERSION = 1;
22 * Revised stream version. Unlike {@link #LITHIUM_VERSION}, QNames are using a per-stream dictionary, too.
24 static final short SODIUM_VERSION = 2;
26 // Tokens supported in LITHIUM_VERSION
27 static final byte IS_CODE_VALUE = 1;
28 static final byte IS_STRING_VALUE = 2;
29 static final byte IS_NULL_VALUE = 3;
31 // Tokens supported in SODIUM_VERSION
32 static final byte IS_QNAME_CODE = 4;
33 static final byte IS_QNAME_VALUE = 5;
34 static final byte IS_AUGMENT_CODE = 6;
35 static final byte IS_AUGMENT_VALUE = 7;