1 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2 // Copyright (c) 2014, Vlad Balan (vlad.gm@gmail.com).  All rights reserved.
3 //  This source code is licensed under both the GPLv2 (found in the
4 //  COPYING file in the root directory) and Apache 2.0 License
5 //  (found in the LICENSE.Apache file in the root directory).
6 
7 package org.rocksdb;
8 
9 /**
10  * StringAppendOperator is a merge operator that concatenates
11  * two strings.
12  */
13 public class StringAppendOperator extends MergeOperator {
StringAppendOperator()14     public StringAppendOperator() {
15         this(',');
16     }
17 
StringAppendOperator(char delim)18     public StringAppendOperator(char delim) {
19         super(newSharedStringAppendOperator(delim));
20     }
21 
newSharedStringAppendOperator(final char delim)22     private native static long newSharedStringAppendOperator(final char delim);
disposeInternal(final long handle)23     @Override protected final native void disposeInternal(final long handle);
24 }
25