1 package net.obsearch.storage; 2 3 4 /* 5 OBSearch: a distributed similarity search engine This project is to 6 similarity search what 'bit-torrent' is to downloads. 7 Copyright (C) 2008 Arnoldo Jose Muller Molina 8 9 This program is free software: you can redistribute it and/or modify 10 it under the terms of the GNU General Public License as published by 11 the Free Software Foundation, either version 3 of the License, or 12 (at your option) any later version. 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU General Public License for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with this program. If not, see <http://www.gnu.org/licenses/>. 21 */ 22 23 import java.nio.ByteBuffer; 24 25 /** 26 * TupleBytes holds a key in bytes and a value in bytes. 27 * @author Arnoldo Jose Muller Molina 28 */ 29 30 public class TupleBytes 31 extends Tuple { 32 protected byte[] key; 33 34 public TupleBytes(){ 35 super(); 36 key = null; 37 } 38 public TupleBytes(byte[] key, byte[] value) { 39 super(value); 40 this.key = key; 41 } 42 43 public byte[] getKey() { 44 return key; 45 } 46 }