// Copyright (c) 2014, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. package org.rocksdb; /** *

Describes a column family with a * name and respective Options.

*/ public class ColumnFamilyDescriptor { /** *

Creates a new Column Family using a name and default * options,

* * @param columnFamilyName name of column family. */ public ColumnFamilyDescriptor(final String columnFamilyName){ this(columnFamilyName, new ColumnFamilyOptions()); } /** *

Creates a new Column Family using a name and custom * options.

* * @param columnFamilyName name of column family. * @param columnFamilyOptions options to be used with * column family. */ public ColumnFamilyDescriptor(final String columnFamilyName, final ColumnFamilyOptions columnFamilyOptions) { columnFamilyName_ = columnFamilyName; columnFamilyOptions_ = columnFamilyOptions; } /** * Retrieve name of column family. * * @return column family name. */ public String columnFamilyName() { return columnFamilyName_; } /** * Retrieve assigned options instance. * * @return Options instance assigned to this instance. */ public ColumnFamilyOptions columnFamilyOptions() { return columnFamilyOptions_; } private final String columnFamilyName_; private final ColumnFamilyOptions columnFamilyOptions_; }