Module: Groonga

Defined in:
lib/groonga.rb,
lib/groonga/index.rb,
lib/groonga/column.rb,
lib/groonga/dumper.rb,
lib/groonga/logger.rb,
lib/groonga/record.rb,
lib/groonga/schema.rb,
lib/groonga/context.rb,
lib/groonga/posting.rb,
lib/groonga/database.rb,
lib/groonga/geo-point.rb,
lib/groonga/pagination.rb,
lib/groonga/grntest-log.rb,
lib/groonga/memory-pool.rb,
lib/groonga/sub-records.rb,
lib/groonga/index-column.rb,
lib/groonga/query-logger.rb,
lib/groonga/patricia-trie.rb,
lib/groonga/database-inspector.rb,
lib/groonga/expression-builder.rb,
lib/groonga/context/command-executor.rb,
ext/groonga/rb-groonga.c

Overview

Copyright (C) 2015 Masafumi Yokoyama yokoyama@clear-code.com Copyright (C) 2009-2016 Kouhei Sutou kou@clear-code.com

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Defined Under Namespace

Modules: DefaultCache, Dumper, Encoding, EncodingSupport, Flushable, GeoPointValueConverter, GrntestLog, ID, Pagination, RequestCanceler, RequestTimer Classes: Accessor, AddressIsInUse, AddressIsNotAvailable, ArgumentListTooLong, Array, ArrayCursor, BadAddress, BadFileDescriptor, BrokenPipe, CASError, CallbackLogger, CallbackQueryLogger, Cancel, Closed, Column, ColumnCache, CommandError, Config, ConnectionRefused, ConnectionReset, Context, DataColumn, Database, DatabaseDumper, DatabaseInspector, DirectoryNotEmpty, DomainError, DoubleArrayTrie, DoubleArrayTrieCursor, EndOfData, Error, ExecFormatError, Expression, FileCorrupt, FileExists, FileLogger, FileQueryLogger, FileTooLarge, FilenameTooLong, FixSizeColumn, FunctionNotImplemented, GeoPoint, Hash, HashCursor, IllegalByteSequence, ImproperLink, InappropriateIOControlOperation, IncompatibleFileFormat, Index, IndexColumn, IndexColumnDumper, InputOutputError, InterruptedFunctionCall, InvalidArgument, InvalidFormat, InvalidSeek, IsADirectory, LZ4Error, Logger, MemoryPool, Name, NetworkIsDown, NoBuffer, NoChildProcesses, NoLocksAvailable, NoMemoryAvailable, NoSpaceLeftOnDevice, NoSuchColumn, NoSuchDevice, NoSuchDeviceOrAddress, NoSuchFileOrDirectory, NoSuchProcess, Normalizer, NormalizerError, NotADirectory, NotEnoughSpace, NotSocket, Object, ObjectClosed, ObjectCorrupt, OperationNotPermitted, OperationNotSupported, OperationTimeout, OperationWouldBlock, PatriciaTrie, PatriciaTrieCursor, PermissionDenied, Plugin, PluginError, Posting, QueryLogger, RangeError, ReadOnlyFileSystem, Record, RequestTimerID, ResourceBusy, ResourceDeadlockAvoided, ResourceTemporarilyUnavailable, ResultTooLarge, RetryMax, Schema, SchemaDumper, ScorerError, Snippet, SocketIsAlreadyConnected, SocketIsAlreadyShutdowned, SocketIsNotConnected, SocketNotInitialized, StackOverFlow, SubRecords, SyntaxError, Table, TableCursor, TableDumper, Thread, TokenFilterError, TokenizerError, TokyoGeoPoint, TooLargeOffset, TooLargePage, TooManyLinks, TooManyOpenFiles, TooManyOpenFilesInSystem, TooManySymbolicLinks, TooSmallLimit, TooSmallOffset, TooSmallPage, TooSmallPageSize, Type, UnknownError, UnsupportedCommandVersion, UpdateNotAllowed, Variable, VariableSizeColumn, WGS84GeoPoint, WindowFunctionError, WindowsEventLogger, ZLibError, ZstdError

Class Method Summary collapse

  • .[](name) ⇒ Object

    call-seq: Groonga[name] -> Groonga::Object or nil Groonga[id] -> Groonga::Object or nil.

  • .bindings_version ⇒ Object

    BINDINGS_VERSIONを”.”で結合して“メジャーバージョン.マ イナーバージョン.マイクロバージョン”という形式の文 字列にしたもの。.

  • .build_version ⇒ Object

    BUILD_VERSIONを”.”で結合して“メジャーバージョン.マ イナーバージョン.マイクロバージョン”という形式の 文字列にしたもの。.

  • .version ⇒ String

    VERSIONを”.”で結合して、”メジャーバージョン.マイナーバージョン.マイクロバージョン”という形式の文字列にしたもの。もしVERSIONにタグが含まれる場合、”メジャーバージョン.マイナーバージョン.マイクロバージョン-タグ”という形式の文字列になる。.

Class Method Details

.[](name) ⇒ Object

call-seq: Groonga[name] -> Groonga::Object or nil Groonga[id] -> Groonga::Object or nil

便利メソッド。Groonga::Context.default[name]と同じ。



88
89
90
# File 'lib/groonga.rb', line 88

def [](name)
  Context.default[name]
end

.bindings_versionObject

BINDINGS_VERSIONを”.”で結合して“メジャーバージョン.マ イナーバージョン.マイクロバージョン”という形式の文 字列にしたもの。



78
79
80
# File 'lib/groonga.rb', line 78

def bindings_version
  BINDINGS_VERSION.join(".")
end

.build_versionObject

BUILD_VERSIONを”.”で結合して“メジャーバージョン.マ イナーバージョン.マイクロバージョン”という形式の 文字列にしたもの。



59
60
61
# File 'lib/groonga.rb', line 59

def build_version
  BUILD_VERSION.join(".")
end

.versionString

VERSIONを”.”で結合して、”メジャーバージョン.マイナーバージョン.マイクロバージョン”という形式の文字列にしたもの。もしVERSIONにタグが含まれる場合、”メジャーバージョン.マイナーバージョン.マイクロバージョン-タグ”という形式の文字列になる。

Returns:

  • (String)

    If Groonga::VERSION has tag, @MAJOR.MINOR.MICRO-TAG@. Otherwise, @MAJOR.MINOR.MICRO@.



67
68
69
70
71
72
# File 'lib/groonga.rb', line 67

def version
  major, minor, micro, tag = VERSION
  version_string = [major, minor, micro].join(".")
  version_string << "-#{tag}" if tag
  version_string
end