HBASE-811 fix whitespaace

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@684937 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Kellerman 2008-08-11 21:24:04 +00:00
parent 0c3bd478b3
commit 0696c139f5
3 changed files with 1260 additions and 1260 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,104 +1,104 @@
/** /**
* Copyright 2008 The Apache Software Foundation * Copyright 2008 The Apache Software Foundation
* *
* Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information * distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.hadoop.hbase.client; package org.apache.hadoop.hbase.client;
import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.HTableDescriptor;
/** /**
* Read-only table descriptor. * Read-only table descriptor.
*/ */
public class UnmodifyableHTableDescriptor extends HTableDescriptor { public class UnmodifyableHTableDescriptor extends HTableDescriptor {
public UnmodifyableHTableDescriptor() { public UnmodifyableHTableDescriptor() {
super(); super();
} }
/* /*
* Create an unmodifyable copy of an HTableDescriptor * Create an unmodifyable copy of an HTableDescriptor
* @param desc * @param desc
*/ */
UnmodifyableHTableDescriptor(final HTableDescriptor desc) { UnmodifyableHTableDescriptor(final HTableDescriptor desc) {
super(desc.getName(), getUnmodifyableFamilies(desc), desc.getValues()); super(desc.getName(), getUnmodifyableFamilies(desc), desc.getValues());
} }
/* /*
* @param desc * @param desc
* @return Families as unmodifiable array. * @return Families as unmodifiable array.
*/ */
private static HColumnDescriptor[] getUnmodifyableFamilies( private static HColumnDescriptor[] getUnmodifyableFamilies(
final HTableDescriptor desc) { final HTableDescriptor desc) {
HColumnDescriptor [] f = new HColumnDescriptor[desc.getFamilies().size()]; HColumnDescriptor [] f = new HColumnDescriptor[desc.getFamilies().size()];
int i = 0; int i = 0;
for (HColumnDescriptor c: desc.getFamilies()) { for (HColumnDescriptor c: desc.getFamilies()) {
f[i++] = c; f[i++] = c;
} }
return f; return f;
} }
/** /**
* Does NOT add a column family. This object is immutable * Does NOT add a column family. This object is immutable
* @param family HColumnDescriptor of familyto add. * @param family HColumnDescriptor of familyto add.
*/ */
@Override @Override
public void addFamily(final HColumnDescriptor family) { public void addFamily(final HColumnDescriptor family) {
throw new UnsupportedOperationException("HTableDescriptor is read-only"); throw new UnsupportedOperationException("HTableDescriptor is read-only");
} }
/** /**
* @param column * @param column
* @return Column descriptor for the passed family name or the family on * @return Column descriptor for the passed family name or the family on
* passed in column. * passed in column.
*/ */
@Override @Override
public HColumnDescriptor removeFamily(final byte [] column) { public HColumnDescriptor removeFamily(final byte [] column) {
throw new UnsupportedOperationException("HTableDescriptor is read-only"); throw new UnsupportedOperationException("HTableDescriptor is read-only");
} }
@Override @Override
public void setInMemory(boolean inMemory) { public void setInMemory(boolean inMemory) {
throw new UnsupportedOperationException("HTableDescriptor is read-only"); throw new UnsupportedOperationException("HTableDescriptor is read-only");
} }
@Override @Override
public void setReadOnly(boolean readOnly) { public void setReadOnly(boolean readOnly) {
throw new UnsupportedOperationException("HTableDescriptor is read-only"); throw new UnsupportedOperationException("HTableDescriptor is read-only");
} }
@Override @Override
public void setValue(byte[] key, byte[] value) { public void setValue(byte[] key, byte[] value) {
throw new UnsupportedOperationException("HTableDescriptor is read-only"); throw new UnsupportedOperationException("HTableDescriptor is read-only");
} }
@Override @Override
public void setValue(String key, String value) { public void setValue(String key, String value) {
throw new UnsupportedOperationException("HTableDescriptor is read-only"); throw new UnsupportedOperationException("HTableDescriptor is read-only");
} }
@Override @Override
public void setMaxFileSize(long maxFileSize) { public void setMaxFileSize(long maxFileSize) {
throw new UnsupportedOperationException("HTableDescriptor is read-only"); throw new UnsupportedOperationException("HTableDescriptor is read-only");
} }
@Override @Override
public void setMemcacheFlushSize(int memcacheFlushSize) { public void setMemcacheFlushSize(int memcacheFlushSize) {
throw new UnsupportedOperationException("HTableDescriptor is read-only"); throw new UnsupportedOperationException("HTableDescriptor is read-only");
} }
} }