Switch default stream output to Magnesium
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / stream / LithiumValue.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.datastore.node.utils.stream;
9
10 final class LithiumValue {
11     // The String length threshold beyond which a String should be encoded as bytes
12     static final int STRING_BYTES_LENGTH_THRESHOLD = Short.MAX_VALUE / 4;
13
14     static final byte SHORT_TYPE = 1;
15     static final byte BYTE_TYPE = 2;
16     static final byte INT_TYPE = 3;
17     static final byte LONG_TYPE = 4;
18     static final byte BOOL_TYPE = 5;
19     static final byte QNAME_TYPE = 6;
20     static final byte BITS_TYPE = 7;
21     static final byte YANG_IDENTIFIER_TYPE = 8;
22     static final byte STRING_TYPE = 9;
23     static final byte BIG_INTEGER_TYPE = 10;
24     static final byte BIG_DECIMAL_TYPE = 11;
25     static final byte BINARY_TYPE = 12;
26     // Leaf nodes no longer allow null values. The "empty" type is now represented as
27     // org.opendaylight.yangtools.yang.common.Empty. This is kept for backwards compatibility.
28     @Deprecated
29     static final byte NULL_TYPE = 13;
30     static final byte STRING_BYTES_TYPE = 14;
31     static final byte EMPTY_TYPE = 15;
32
33     private LithiumValue() {
34         throw new UnsupportedOperationException("Utility class");
35     }
36 }