1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.hadoop.hbase.client;
21
22 import org.apache.hadoop.classification.InterfaceAudience;
23 import org.apache.hadoop.classification.InterfaceStability;
24 import org.apache.hadoop.hbase.HColumnDescriptor;
25 import org.apache.hadoop.hbase.io.compress.Compression;
26
27
28
29
30 @InterfaceAudience.Public
31 @InterfaceStability.Evolving
32 public class UnmodifyableHColumnDescriptor extends HColumnDescriptor {
33
34
35
36
37 public UnmodifyableHColumnDescriptor (final HColumnDescriptor desc) {
38 super(desc);
39 }
40
41
42
43
44 @Override
45 public HColumnDescriptor setValue(byte[] key, byte[] value) {
46 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
47 }
48
49
50
51
52 @Override
53 public HColumnDescriptor setValue(String key, String value) {
54 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
55 }
56
57
58
59
60 @Override
61 public HColumnDescriptor setMaxVersions(int maxVersions) {
62 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
63 }
64
65
66
67
68 @Override
69 public HColumnDescriptor setInMemory(boolean inMemory) {
70 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
71 }
72
73
74
75
76 @Override
77 public HColumnDescriptor setBlockCacheEnabled(boolean blockCacheEnabled) {
78 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
79 }
80
81
82
83
84 @Override
85 public HColumnDescriptor setTimeToLive(int timeToLive) {
86 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
87 }
88
89
90
91
92 @Override
93 public HColumnDescriptor setCompressionType(Compression.Algorithm type) {
94 throw new UnsupportedOperationException("HColumnDescriptor is read-only");
95 }
96 }